Hi!
I would like to know, how can i put the visual desiners source code, to use. So for example, when i put a string gadget, and how can i recieve input from it like: string_x.textChanged, like so? I hope you got my quetion.
Or like btnCalculate.Pressed? So when it is pressed what to do in the program.
Actually when i run the program form the source code it shows the program has run, in the debuger but i see nothing...
thanks
btn.pressed properties
Re: btn.pressed properties
Hi
There are examples of most of the commands in the PureBasic help. There are also numerous helps/tips/etc in the forum - try a search for the relevant command.
There's also a wealth of examples at http://www.purearea.net/.
As far as I know, the visual designer does not create code as per your examples.
cheers
There are examples of most of the commands in the PureBasic help. There are also numerous helps/tips/etc in the forum - try a search for the relevant command.
There's also a wealth of examples at http://www.purearea.net/.
As far as I know, the visual designer does not create code as per your examples.
cheers
-
gnozal
- PureBasic Expert

- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Re: btn.pressed properties
Purebasic uses an event loop.sprenio wrote:...
I would like to know, how can i put the visual desiners source code, to use. So for example, when i put a string gadget, and how can i recieve input from it like: string_x.textChanged, like so? I hope you got my quetion.
Or like btnCalculate.Pressed? So when it is pressed what to do in the program.
There are no 'OnEvent' functions like in VB ; you have to check for the events in the message loop : have a look a the window library help.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Re: btn.pressed properties
Additional tip: For now try another visual designer e.g. gnozal's PureFORM as the one provided with PureBasic currently is in a pretty outdated state.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!

