Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resize an option group
Message
De
28/03/2008 14:59:13
 
 
À
28/03/2008 14:00:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01306572
Message ID:
01306588
Vues:
7
Could you post the class definition code? Thanks.

>How do you resize a custom optiongroup?
>I have a custom optiongroup as a standard base class. The buttons within the optiongroup have been replaced with custom subclassed buttons.
>
>My forms typically scale themselves to fit the screen resolution. The init event of each control contains "thisform.resizeobject(this)" to perform this scaling. This has always worked fine except that now with the 22inch monitors I can't get the optiongroup to scale properly.
>
>I have tried various combinations of the resize code in the base group and in the individual buttons. Also a for each loop in the parent to resize the option buttons. My immediate group contains 4 buttons. Depending on how I have coded it, I get either the first 2 or the last 2 buttons properly resized, but never all 4 uniformly. Sometimes I get all 4 fonts adjusted but not the positions. I also note that the first 2 buttons inherit their init code while the additional ones do not. So I tried placing the resize code directly into the last 2 buttons but that did not work either.
>
>Probably I missed something when I defined the custom class, but what?
>
>Any help appreciated.
>Thanks
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform