Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to auto resize the grid to feed the screen ?
Message
From
10/05/2007 05:01:05
 
 
To
10/05/2007 04:40:09
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01224052
Message ID:
01224055
Views:
21
>Hi,
>I have a grid on a Form, how can I auto resize the grid Hight and width
>to feed the FORM size when user click the maximize button of the form
>or minimize the Form ?
>I know the resize event was fire when click the maximize\minimize button,
>but how to check it is maximize or minimize the form ?
>
>Please advise.
>Thanks
>Derek

In Resize event of the form put:
DO CASE 
   CASE thisform.WindowState == 0
        ** Normal Window
   CASE thisform.WindowState == 1
        ** Form is minimized
   CASE thisform.WindowState == 2
        ** Form is maximized
ENDCASE
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform