News:

;) This forum is the property of Proton software developers

Main Menu

How to Insert a Header

Started by streborc, Apr 13, 2026, 07:25 PM

Previous topic - Next topic

streborc

I just recently transitioned to Studio V2.1.0.4 from V2.0.3.3.  I've used V2.1.0.4 for updating and editing some existing *.bas files.  Today, I wanted to start a new program from scratch, clicking on New\Source.  A blank editing screen appears.  (When I click New on V2.0.3.3, an editing screen appears with the header present.)  I navigated into Tools\Options\Headers, and from there have tried every permutation of settings I can think of, but nothing results in the insertion of a header.  Neither "Add Header Automatically" nor "Use Custom Header" does anything.  What is the blank box on the right beneath "Add Header Automatically" intended for?  I can type in it, but it produces nothing.  I can create a *.bas file, call it "My_Header", open it as a starting point and then store it as a renamed file, but why is this work-around necessary, when the Tools\Options\Header is supposed to do this?  I'm running under Win7 Pro if this has any impact.  I must be overlooking something obvious, but certainly not obvious to me.

top204

#1
I'm running version 2.1.0.4, and I cannot get the Header to work either.

I always create my own header text, so I have never tried it before, but even when set with a text such as "Hello World, this is my code", a new file remains empty.

I've also noticed that there is no way back from some of the header tick boxes, so if one is chosen, and you change your mind, it does not seem possible to go back to the original format for them.

Regards
Les

streborc

Les -

Thanks for the sanity check on this.  I've also noticed that when I click on the "Fuses" from the opening blank page, a Windows error box pops up, and completely locks up the Studio app.  I can close it only through Task Manager's End Task.


Frizie

For Windows 7, I always use the Mecanique IDE which is included with Positron.
It is simple, but stable  :D
Ohm sweet Ohm | www.picbasic.nl

Stephen Moss

Quote from: streborc on Apr 13, 2026, 07:25 PMWhat is the blank box on the right beneath "Add Header Automatically" intended for?
I may be wrong but believe it should provide a preview of the header showing what it would look like according to which of the option from the Left had box have been selected, just as it does for the "Procedures and Routine Headers" at the bottom of the headers tab.

However, it seem that instead of doing that, the data which should be presented in the right text box is instead being presented in the left hand box, resulting not only in a reduction in the initial number of option check boxes but also preventing any checkbox from being highlighted as selected, which could be why no header is being added, as it does not think you have selected any option to display.
Consequently, it may also be messing with the data in the .ini as I would expect to find a list of the options with True/False settings storing which options have been selected but I could not see under the Header section which where I would it to be.

streborc

Yes, that is what I expected also -- the items in the left side box could be clicked on, and the selected items would display in the right side box, where edits could be done.  But none of this works.  Instead, clicking on an item in the left box deletes the other 3 items and nothing gets displayed in the right side box.

Another anomaly is when starting anew, if I select create a *.bas, all that happens is a blank page.  If I click on project, I'm guided through a sequence of selecting a PIC device, its clock speed and the fuses.  This setup seems necessary for either a project file or a *.bas file, and should be included for both selections.

I've returned to the Positron Studio V2.0.3.3.  While I still have Microcode Studio available from my PIC Basic days, I like the fuse add-in that's available in PS V2.0.3.3.