Page 1 of 1
Feature request: Default variables
Posted: Tue Dec 11, 2012 12:50 pm
by Num3
I like the F.D. but one thing is annoying, if a project has multiple forms i have to hand change every gadget variable so it does no collide, because when a new form is created the gadget count starts from 0.
Maybe the default variable could be changed to something like 'WindowCaptation_GadgetType_Number' or 'GadgetType_WindowCaptation_Number' ?
Keep up hte good work!
Re: Feature request: Default variables
Posted: Tue Dec 11, 2012 1:50 pm
by IdeasVacuum
... Better still would be a string input for a global var prefix - you input your prefix and that is used for all vars of the form currently being defined. If my app has multiple forms, I prefix all the gadget names with the name of the form.
Re: Feature request: Default variables
Posted: Tue Dec 11, 2012 2:40 pm
by Polo
That's a good point, thanks!
Would the prefix be set in the window's properties?
Re: Feature request: Default variables
Posted: Tue Dec 11, 2012 3:08 pm
by Fred
Could a project project properties as well, may be with mask support (like #GADGET_%WindowName%_%GadgetType%_%AutoNumber%)
Re: Feature request: Default variables
Posted: Wed Dec 12, 2012 12:36 pm
by Num3
Just noticed that image variables has the same problem!
Code: Select all
Enumeration #PB_Compiler_EnumerationValue
#Img_0
#Img_1
#Img_2
etc...
EndEnumeration