Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic Optiongroup
Message
From
03/05/2001 14:26:51
 
 
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:
00503183
Views:
25
This message has been marked as the solution 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.
>
>-Josh

Autosize must be on for each optionbutton and the optiongroup.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform