Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Screen and Forms Width
Message
De
17/07/1998 19:22:29
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00118753
Message ID:
00118856
Vues:
14
>Francisco,
>
>If MyWidth is a #DEFINE constant your approach won't work because the #DEFINE >is a compiler directive that is only evaluated at compile time. You would be >better to use the SYSMETRIC() call right in your code or to use a property or >memvar to hold the value.


I used a memvar, but the main problem is this:

In the form designer, in properties you have Witdh, and there
you can't put a memvar or constant. You have to put a number (
(10,120,640 etc) so I'm forced to put 640.

In the Activate Event I put:

ThisForm.Width=MyWidth (memvar or constant)

Suppose MyWidth is 800. I also tried in the Init Event.

When I run the form: The Width is still 640.

I can't change it to 800 unles I put 800 in
the Width Property of the form.

So the width is always constant and I can't change it
dependign of sysmetric().

Any suggestions.

Thanks for your help and time.

Francisco
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform