IonicWind Software

Aurora Compiler => GUI => Topic started by: Bruce Peaslee on November 14, 2007, 09:32:33 AM

Title: Delete Control
Post by: Bruce Peaslee on November 14, 2007, 09:32:33 AM
In Aurora I was shown how to destroy a dialog so that I could recreate it with a different number of controls. I now want to do something similar in EBasic, but I think it would be simpler if I just deleted the controls. Does anyone know how to delete (not just hide) a control in a dialog?

Thanks.
Title: Re: Delete Control
Post by: Ionic Wind Support Team on November 14, 2007, 09:42:51 AM
Use the DestroyWindow API function.

DestroyWindow(GetControlHandle(dlg, id) )

Don't use that with controls in a window though ;)
Title: Re: Delete Control
Post by: Bruce Peaslee on November 14, 2007, 09:45:02 AM
Quote from: Paul Turley on November 14, 2007, 09:42:51 AM
Use the DestroyWindow API function.

DestroyWindow(GetControlHandle(dlg, id) )

Don't use that with controls in a window though ;)

Nice and simple - just how I like it.

Thanks.