Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Blue Gui problem with variables

Author
Message
DB_Master
20
Years of Service
User Offline
Joined: 24th Mar 2004
Location:
Posted: 30th Nov 2004 09:34
I dont know how to assosiate a variable in the text of the gadgets.To be clearer with you I cant figure out how to write a variable to the editboxes, labels or whatever.

If you could please help me or have any advice then dont be shy.

King programer
JerBil
20
Years of Service
User Offline
Joined: 8th May 2004
Location: Somewhere along the Z axis...
Posted: 30th Nov 2004 09:55 Edited at: 30th Nov 2004 09:59
Here variable a=20 and is sent to the editbox.
Same thing with a label. To get value do getgadgettext
as in the last line -JerBil


a=20

edBox=createedit(10,10,40,20,0,0)
setgadgettext edBox,str$(a)

lbBox=createlabel(10,50,40,20,"",0)
setgadgettext lbBox,str$(a)

c=val(getgadgettext (edBox))
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 1st Dec 2004 16:50
For a string variable:

myVar$="Test String"
setGadgetText gadgetHandle,myVar$


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.

Login to post a reply

Server time is: 2024-11-21 14:37:16
Your offset time is: 2024-11-21 14:37:16