May 09, 2024, 09:49:51 PM

News:

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


Delete a control

Started by TonyMUK, May 13, 2010, 03:54:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TonyMUK

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
Check out www.arnoldchiari.co.uk. If you don't know what Arnold Chiari is you are very lucky.

LarryMc

declare import,DestroyWindow(uint hWnd),int

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


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

TonyMUK

Cheers Larry, I'll give it a go.
Check out www.arnoldchiari.co.uk. If you don't know what Arnold Chiari is you are very lucky.

TonyMUK

Works perfectly, thanks Larry
Check out www.arnoldchiari.co.uk. If you don't know what Arnold Chiari is you are very lucky.