Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic Optiongroup
Message
 
À
03/05/2001 14:19:16
Josh Fedke
National Financial Corporation
Milwaukee, Wisconsin, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00503176
Message ID:
00503180
Vues:
27
This message has been marked as a message which has helped to the initial question of the thread.
>I am adding an optiongroup to a form using thisform.addobject(...). I have autosize turned on. I then use a loop to set the caption of each of the options. The height autosizes correctly, but the width does not. (I am using macro substitution to set the captions of the options). I have tried various combinations of turning autosize on and off and refreshing the control, but the width is always fixed and too narrow. I there a way to get the width to autosize or am I stuck with trying to set the width programmatically for each option? If so, does someone have a code snippit that shows a good way to determine how many pixels wide a control should be given the greatest width of a string to be used in that control? Thanks in advance.

Make sure that the option you add also has Autosize set to True.
HTH,
- Erik Niese-Petersen

Crazy Dane in USA.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform