IonicWind Software

IWBasic => General Questions => Topic started by: Brian on September 21, 2014, 08:01:09 AM

Title: Delete a Control
Post by: Brian on September 21, 2014, 08:01:09 AM
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
Title: Re: Delete a Control
Post by: LarryMc on September 21, 2014, 08:43:59 AM
Try this

declare import,DestroyWindow(uint hWnd),int

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

Title: Re: Delete a Control
Post by: Brian on September 21, 2014, 08:46:14 AM
Thanks, Larry,

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

Brian