Feature request: Default variables

You need some new stunning features ? Tell us here.
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Feature request: Default variables

Post 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!
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Feature request: Default variables

Post 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.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Feature request: Default variables

Post by Polo »

That's a good point, thanks!

Would the prefix be set in the window's properties?
Fred
Administrator
Administrator
Posts: 18384
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Feature request: Default variables

Post by Fred »

Could a project project properties as well, may be with mask support (like #GADGET_%WindowName%_%GadgetType%_%AutoNumber%)
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Re: Feature request: Default variables

Post 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
Post Reply