It is currently Sat May 25, 2013 5:45 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: btn.pressed properties
PostPosted: Tue Jul 19, 2011 2:01 am 
Offline
User
User

Joined: Sat Jul 16, 2011 1:06 am
Posts: 25
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


Top
 Profile  
 
 Post subject: Re: btn.pressed properties
PostPosted: Tue Jul 19, 2011 2:46 am 
Offline
Addict
Addict

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


Top
 Profile  
 
 Post subject: Re: btn.pressed properties
PostPosted: Tue Jul 19, 2011 8:29 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
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).


Top
 Profile  
 
 Post subject: Re: btn.pressed properties
PostPosted: Tue Jul 19, 2011 8:40 am 
Offline
Addict
Addict

Joined: Thu Nov 01, 2007 5:37 pm
Posts: 1568
Location: Germany
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye