May 03, 2024, 12:53:13 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


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