IonicWind Software

Aurora Compiler => GUI => Topic started by: pistol350 on June 13, 2007, 01:51:18 PM

Title: SetControlText(d1, BUTTON_START, "Stop") ; what is the equivalent in Aurora ?
Post by: pistol350 on June 13, 2007, 01:51:18 PM
Hi all!
I've searched  for a SetControlText command in Aurora but can't find any.
I found the GetControl , i then thought that i could find the Setcontrol one ,but not!

In fact i want to do something similar to this :  SetControlText(d1, BUTTON_START, "Stop") ;
I thought setText would help but i am afraid of the synthax error  :-\
Any suggestions ?
Title: Re: SetControlText(d1, BUTTON_START, "Stop") ; what is the equivalent in Aurora ?
Post by: Bruce Peaslee on June 13, 2007, 02:32:24 PM
GetControl() returns a pointer to the control. Use AddControl() to create the control and set its text.


myDialog.AddControl(CTBUTTON,"Old Text",218,389,70,20,AWS_VISIBLE,ControlID);
...
// now change the text
CButton *pButton = GetControl(ControlID);
pButton -> SetText("New Text");


Don't be afraid of syntax errors - it's the errors the compiler doesn't catch that can be scary  ;)
Title: Re: SetControlText(d1, BUTTON_START, "Stop") ; what is the equivalent in Aurora ?
Post by: pistol350 on June 14, 2007, 05:44:25 AM
Thanks Bruce!
I am gonna give it a try!

Quote
Don't be afraid of syntax errors - it's the errors the compiler doesn't catch that can be scary   ;)
LOL! :D

String speach;
speach ="What you said";
speach=True

Compiling error....   ;D