Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to yoiu adjust the size of your FORM at run time?
Message
From
11/06/1999 22:38:42
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00228236
Message ID:
00229081
Views:
28
>>>>I want to adjust the size of my form with a button on the form at run time? I have a button on my form that says MORE>>. After you click it, the button Says LESS<<. To change to form size, I make calls to the form's properties.
>>>>Examle…
>>>>
>>>>On the click event of the MORE button, I have…
>>>>Thisform.hight=45
>>>>Thisform.left= 20
>>>>Thisform.top=10
>>>>Etc….
>>>>The problem is, it draws the form to slow. How can I speed it up?
>>>
>>>Have you tried locking the screen then adjsut it then unlocking the screen. e.g THISFORM.lockscreen = .T.
>>------
>>HI Bret...
>>I am not to sure how THISFORM.lockscreen = .T. would help me with changing
>>the forms size.... Could you explain...:)
>
>In your code snippet above, add THISFORM.LockScreen = .t. at the beginning. Then end the code with THISFORM.LockScreen = .f. This eliminates all the screen painting while the changes are made. then unlocking the screen causes only 1 screen painting. Saves much I/O to the monitor.
------------
ok - I will try it.... thanks ... :)
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Reply
Map
View

Click here to load this message in the networking platform