Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make Grid area resize when maximize/min window?
Message
From
19/06/2002 19:05:18
 
 
To
19/06/2002 18:53:01
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00666731
Message ID:
00670357
Views:
35
This message has been marked as the solution to the initial question of the thread.
>Any idea how could I modify resize event just for this form to work? For the code below. How do I make the height of the grid a little bit shorter than the whole window. SO that my CLOSE button will show properly.
>
>WITH ThisForm.myGrid
> .Height = ThisForm.Height - .Top - 5
> .Width = ThisForm.Width - .Left * 2
>ENDWITH
>
>Thanks.
>Angela

I suppose your button name is myCommand and your grid name is myGrid.
Also I suppose your button be realtive to the bottom of the form with a distance of 30px. So:
* Forms Resize event
With ThisForm.myCommand
    .Top = ThisForm.Height - 30
EndWith

WITH ThisForm.myGrid
    .Height = ThisForm.Height - .Top - 35
    .Width  = ThisForm.Width  - .Left * 2
ENDWITH
HTH
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform