Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to move MODIFY FORM editor window programmatically
Message
From
13/09/2005 23:13:04
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01049280
Message ID:
01049298
Views:
16
>Try
MODIFY FORM myform NOWAIT
>MOVE WINDOW (WONTOP()) TO  10,20
>
>
>>I am writing a form to find the difference between two projects, file by file. Once a difference is found user is allowed to bring up files via VFP editors. I want to spread out the editor windows for legibility. How do I get hold of MODIFY FORM window (for instance) in order to change its Left property?
>>

Thanks Sergey. That is a good start only. Since both windows are editing forms with the same name (though in different paths), both WONTOP() have the same name (Form Designer - xxxx.scx), so MOVE WINDOW (WONTOP()) TO xx,yy does not do what's needed. How do you make sure you move each of the two windows as needed?

The following is my actual code:
* cPath1 = "z:\path1\form.scx"
* cPath2 = "z:\path2\form.scx"
MODIFY FORM (cPath1) NOWAIT
MOVE WINDOW (WONTOP()) TO  5,1
MODIFY FORM (cPath2) NOWAIT
MOVE WINDOW (WONTOP()) TO  5,20
Thank you,

Alex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform