May 21, 2024, 04:17:55 PM

News:

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


Delete a Control

Started by Brian, September 21, 2014, 08:01:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Brian

OK, I've been looking (honest), and I can see how to enable or disable a control,
but how do you remove or delete a control completely?

Egg on face in advance!

Brian

LarryMc

Try this

declare import,DestroyWindow(uint hWnd),int

IF CONTROLEXIST(mywin,mycontrol)
   DestroyWindow(GETCONTROLHANDLE(mywin,mycontrol))
ENDIF

LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Brian

Thanks, Larry,

I think I have used DestroyWindow before, but it never crossed my mind this time

Brian