btn.pressed properties

You need some new stunning features ? Tell us here.
sprenio
User
User
Posts: 25
Joined: Sat Jul 16, 2011 1:06 am

btn.pressed properties

Post 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
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Re: btn.pressed properties

Post 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
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: btn.pressed properties

Post 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.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: btn.pressed properties

Post 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.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Post Reply