Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving controls at runtime
Message
From
29/05/2006 03:32:35
 
 
To
29/05/2006 01:45:04
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01125611
Message ID:
01125615
Views:
23
>Hi Guys,
>
>Is it possible in vfp to move controls in a form during runtime? The idea is to give the users the flexibility to design the layout of controls in a form.

Hello,

I don't know if this is the answer you want, but in VFP moving controls at runtime is very simple:
Example:
* Move button1 to position 10,10 of the form
form1.button1.left = 10
form1.button1.top = 10
* Move button1 to position 20,20 of the same form
form1.button1.left = 20
form1.button1.top = 20
This code can be anywhere in your program

Joaquim
Previous
Reply
Map
View

Click here to load this message in the networking platform