Register
Site Login
Site Search
Forums
Advertisement
Welcome to PocketMatrix. PocketMatrix is dedicated to providing the best online community for mobile device developers and enthusiests. What's new?

Deleting controls


Deleting controls

Postby jsjohnson » May 18, 2004 @ 2:47pm

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.
Jup!
User avatar
jsjohnson
pm Member
 
Posts: 21
Joined: Apr 22, 2004 @ 2:41pm


Postby kornalius » May 18, 2004 @ 4:17pm

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
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


uho

Postby jsjohnson » May 24, 2004 @ 10:49pm

I tried both ways, and neither one seems to work. The control is still onscreen, and you can click/interact with it.
Jup!
User avatar
jsjohnson
pm Member
 
Posts: 21
Joined: Apr 22, 2004 @ 2:41pm


Postby kornalius » May 24, 2004 @ 11:38pm

Oh yeah? Ok I will try it here and make the necessary corrections for the next build.

Sorry about that,
Regards,
Kornalius
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby kornalius » May 25, 2004 @ 6:43pm

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
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Sorry

Postby jsjohnson » Jun 4, 2004 @ 12:17am

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!
Jup!
User avatar
jsjohnson
pm Member
 
Posts: 21
Joined: Apr 22, 2004 @ 2:41pm


Postby kornalius » Jun 4, 2004 @ 1:16am

No prob. If you feel the need to send it me, please go ahead.

Regards,
Kornalius
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Return to Pocket Programming Language (PPL)


Sort


Forum Description

Discuss this new development tool.

Moderator:

kornalius

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum