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!
Feature request: Default variables
-
IdeasVacuum
- Always Here

- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Feature request: Default variables
... 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.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
Re: Feature request: Default variables
That's a good point, thanks!
Would the prefix be set in the window's properties?
Would the prefix be set in the window's properties?
Re: Feature request: Default variables
Could a project project properties as well, may be with mask support (like #GADGET_%WindowName%_%GadgetType%_%AutoNumber%)
-
Num3
- PureBasic Expert

- Posts: 2812
- Joined: Fri Apr 25, 2003 4:51 pm
- Location: Portugal, Lisbon
- Contact:
Re: Feature request: Default variables
Just noticed that image variables has the same problem!
Code: Select all
Enumeration #PB_Compiler_EnumerationValue
#Img_0
#Img_1
#Img_2
etc...
EndEnumeration
