IonicWind Software

IWBasic => GUI Central => Topic started by: TonyMUK on May 13, 2010, 03:54:10 AM

Title: Delete a control
Post by: TonyMUK on May 13, 2010, 03:54:10 AM
I have searched for the answer and can't find it so sorry if it has been answered before.

I am creating controls as an RGNBUTTON and I want to be able to destroy them when I have finished with them. Is there a way of doing this?

Thanks in advance

TonyM
Title: Re: Delete a control
Post by: LarryMc on May 13, 2010, 05:51:38 AM
declare import,DestroyWindow(uint hWnd),int

if controlexists(mywin,mycontrol)
   DestroyWindow(getcontrolhandle(mywin,mycontrol))
endif


LarryMc
Title: Re: Delete a control
Post by: TonyMUK on May 13, 2010, 05:55:22 AM
Cheers Larry, I'll give it a go.
Title: Re: Delete a control
Post by: TonyMUK on May 13, 2010, 06:54:27 AM
Works perfectly, thanks Larry