Proposal for Form Designer (PB 5.11)

You need some new stunning features ? Tell us here.
User avatar
menschmarkus
User
User
Posts: 18
Joined: Fri Dec 28, 2012 11:23 pm
Location: Center Germany

Proposal for Form Designer (PB 5.11)

Post by menschmarkus »

Today I start to work with Form Designer. Found some bugs but following the Forum they are fixed.
I like it to define gadget text as a variable. It offers nice basic setup for multilangual program. Unfortunately if I just want to check the window and compile it, I get an correct error message (String expected). The gadget contains the set variable but the variable is undifined.
It would be really helpful if code creator in the background would define the gadget text variables as e.g. a global string variable. Even if it would be as an empty string, it would help not to loose overview over all gadgets.
It would be perfect if I could enter variable name as well as gadget text in form designer.

Just a wish :)

If there is a solution existing, just tell me.

menschmarkus
As soon you do it right, it works !
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Proposal for Form Designer (PB 5.11)

Post by IdeasVacuum »

How about using the variable name as the gadget text?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
menschmarkus
User
User
Posts: 18
Joined: Fri Dec 28, 2012 11:23 pm
Location: Center Germany

Re: Proposal for Form Designer (PB 5.11)

Post by menschmarkus »

Of course I could use variable name as gadget text but this takes the possibility to use a gadget text variable for multilingual handling (one variable as gadget text = easy language administration)
As soon you do it right, it works !
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Proposal for Form Designer (PB 5.11)

Post by ts-soft »

Set the text after reading the language with SetGadgetText! It is not required to set the text on controlcreation :wink:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
menschmarkus
User
User
Posts: 18
Joined: Fri Dec 28, 2012 11:23 pm
Location: Center Germany

Re: Proposal for Form Designer (PB 5.11)

Post by menschmarkus »

ts-soft wrote:Set the text after reading the language with SetGadgetText! It is not required to set the text on controlcreation :wink:
Ok, but at this point you finished designing your window.
Imagine you build a window with e.g. 60 text containing gadgets- you finished designing it an want to launch it. As mentioned in my first message you will get error messages because the variables fort the txt gadgets are not defined (i know, i repeat myself). you now only have a chance for succesful running the window to spend time in defining 60 variables and fill them with life(text). It surely will be much less time consuming to do this work during designing. At last enumerations are defined automatically as well.

However, it was just an idea. I am happy that such a form designer is existing an thank the guys who did this work. Possibly at a later state this idea becomes real. :D
As soon you do it right, it works !
Post Reply