>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.