PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Deleting controls

What is the process for deleting controls? I am trying to make a little test program, where I can move buttons around. When you click on the screen, the button should move there.
You can always use the MoveWindow (ctrl$,x$, y$, width$, height$, false) or you can DestroyWindow(ctrl$) and re-create it. I suggest that you move it instead.

Regards,
Kornalius
jsjohnson · 24 May 2004, 21:49 UTC — uho
I tried both ways, and neither one seems to work. The control is still onscreen, and you can click/interact with it.
Oh yeah? Ok I will try it here and make the necessary corrections for the next build.

Sorry about that,
Regards,
Kornalius
Hi,

I just did some testing and the DestroyWindow works perfectly here. Can you send me your code or part of it so I can take a look at it? Don't forget your control variable needs to be global first in order to be able to access it from other functions or procedures else the value will be 0.

Regards,
Kornalius
jsjohnson · 03 Jun 2004, 23:17 UTC — Sorry
Hey, it seems that my problem was fixed in PPL v4. I can still send you the code w/ the problem, but I don't have access to my PPC right now. Sorry for taking so long to reply!
No prob. If you feel the need to send it me, please go ahead.

Regards,
Kornalius