May 09, 2024, 07:41:27 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Form Builder Tool

Started by tekrat, July 26, 2007, 01:16:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tekrat

Is there a form builder tool yet for Emergence Basic?  I guess I'm a little spoiled by VB6.

GWS

You can use the 'Tools- Dialogue Editor' to lay out the controls, and then 'Dialog - Generate Source'. Copy it to the clipboard.
Then paste the generated code into your program, and just change the 'CreateDialog' statement to an 'OpenWindow' statement.
Change your control creation statements to reference the 'window' variable instead of the original 'dialog' variable, and that should work.

Never use it myself though - I find it's just as easy to create the Window, and all the controls that relate to it.  Sure you have to juggle the 'x', 'y' co-ordinates and sizes, but it's no trouble.

Also, if you want say 50 off any control type, it's easy to put the creation into just one statement in a loop. (The placement would need a bit of algebra for the 'x', 'y' co-ordinates though.

all the best, :)

Graham
Tomorrow may be too late ..