QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: Dimster on February 23, 2019, 04:46:36 pm

Title: Subs and Functions List
Post by: Dimster on February 23, 2019, 04:46:36 pm
I'm finding I need to be a lot more descriptive in the names for my Subs and Functions but when they are listed for editing some of the name is truncated. Is there a way to make the whole name appear?
Title: Re: Subs and Functions List
Post by: bplus on February 23, 2019, 07:22:19 pm
Are you talking about viewing subs in the IDE?  View > Subs...  because it seems like tons of room.
Title: Re: Subs and Functions List
Post by: FellippeHeitor on February 23, 2019, 07:34:18 pm
The panel limits the list to show the first 20 characters of a SUB/FUNCTION's name. If a procedure's name is longer than 20 characters you will see the first 17 characters then "..." to indicate it goes further.

SUB/FUNCTION names can be up to 40 characters, like all identifiers in QB64.

A future version may bring an adaptable panel regarding SUB/FUNCTION names, but in the current version you are limited as indicated above.
Title: Re: Subs and Functions List
Post by: Dimster on February 24, 2019, 12:46:19 pm
Yes, it is the IDE bplus that I was commenting on, and I agree, there appears to be tons of room for the full 40 characters to appear. Even when you highlight a Sub/Function by clicking on it, the full name doesn't appear anywhere on the screen. Thanks Fellippe, as the saying goes "All good things come to those that wait" or might that be "All those that weight had good things"?
Title: Re: Subs and Functions List
Post by: Pete on February 24, 2019, 01:05:27 pm
You mean "weight" comes to all good things? Are we talking code here or supermodels?

You know since you guys asked, what really chaps my hide is the inclusion of the folder names in front of the program names in the "Recent" option. The folder names almost completely obscure the name of the program. I'd recommend either getting rid of the folder location or putting it behind the file name, like Explorer does. Highlighting with side-scrolling enabled would be another solution, but i still think the program name should come first.

Pete
Title: Re: Subs and Functions List
Post by: bplus on February 24, 2019, 01:53:02 pm
@ Pete, hmm... I'd be lost without folder names. How about right alignment of the pathed name, so that the root part gets left off if too long?

@ Dimster, Oh now I see what you are talking about, a 20 or 17 character limit for the name of sub or function in that panel that is as wide as screen but would run out of room for the name part. hmm... maybe if left align the whole string?