IonicWind Software

Aurora Compiler => Coding Help - Aurora 101 => Topic started by: Haim on July 20, 2007, 08:47:01 AM

Title: Simple, probably stupid question
Post by: Haim on July 20, 2007, 08:47:01 AM
I have an untyped pointer which I want to typecast as a pointer to a groupbox control.

Can anyone show me how this should be done?

Haim
Title: Re: Simple, probably stupid question
Post by: sapero on July 20, 2007, 09:41:20 AM
Just cast it: *(type)variable.method
pointer control = GetControl(IDB_STOP);
*(CStatic)control.SetText("stop"); // groupbox is a static control
*(CWindow)control.Show(false);
Title: Re: Simple, probably stupid question
Post by: Bruce Peaslee on July 20, 2007, 09:58:42 AM
It's not a stupid question. I was looking at this problem and was stuck because I did not realize that groupbox is a static control. Now we all learn something.  :D
Title: Re: Simple, probably stupid question
Post by: Haim on July 21, 2007, 12:40:39 AM

I had no idea it was a static control.
Thanks for your help!

Haim