Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic Optiongroup
Message
 
To
03/05/2001 14:19:16
Josh Fedke
National Financial Corporation
Milwaukee, Wisconsin, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00503176
Message ID:
00503180
Views:
28
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform