Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make Grid area resize when maximize/min window?
Message
De
19/06/2002 19:05:18
 
 
À
19/06/2002 18:53:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00666731
Message ID:
00670357
Vues:
36
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!

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform