April 19, 2024, 01:49:43 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Delete Control

Started by Bruce Peaslee, November 14, 2007, 09:32:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bruce Peaslee

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.
Bruce Peaslee
"Born too loose."
iTired (There's a nap for that.)
Well, I headed for Las Vegas
Only made it out to Needles

Ionic Wind Support Team

Use the DestroyWindow API function.

DestroyWindow(GetControlHandle(dlg, id) )

Don't use that with controls in a window though ;)
Ionic Wind Support Team

Bruce Peaslee

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.
Bruce Peaslee
"Born too loose."
iTired (There's a nap for that.)
Well, I headed for Las Vegas
Only made it out to Needles