Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you calculate the header height?
Message
De
11/11/1999 19:03:51
 
 
À
11/11/1999 18:56:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00290365
Message ID:
00290377
Vues:
32
>Hi Dan,
>
>>We've got a calendar control which we have added to a form. Our main form has a button when pushed will call this calendar form and we want to position the form right next to the button. We used objtoclient to get the top position of the button but since the top position is relative to the header height of the form, we were off by that much.
>
>Oh. Did you catch this: ?SysMetric(9) Also, you could consider the ol' Expand-The-Form-On-The-Push-Of-A-Button-To-Reveal-A-Hidden-Area-Like-The-"Details"-in-Dial-Up-Networking approch instead of a new form.

Sysmetric( 9 ) always returns 24 no matter whether I have a title bar or not. I believe this is the system setting not necessarily the current form's header height. We tried something similar more like the-make-the-control-visible-on-the-push-of-a-button. But there's something wrong with this particular control it always appears beneath the other control, which is why we opted for the form solution.

The form actually appears on top of the other form, so expanding the form wouldn't work in this case. Right now we're using sysmetric(9) + 5. Not a great solution but it's working.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform