Page 1 of 1

btn.pressed properties

Posted: Tue Jul 19, 2011 2:01 am
by sprenio
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

Re: btn.pressed properties

Posted: Tue Jul 19, 2011 2:46 am
by rsts
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

Re: btn.pressed properties

Posted: Tue Jul 19, 2011 8:29 am
by gnozal
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.
Purebasic uses an event loop.
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.

Re: btn.pressed properties

Posted: Tue Jul 19, 2011 8:40 am
by c4s
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.