I have allowed users to resize and reposition a dynamic dialog. I would like to adjust the font size of the STATICTEXT/VARYTEXT controls as the dialog is resized, so that words do not disappear as borders change. When I use a variable in the dialog definition, thus:
TestWin003=`008,042,200,080,STATICTEXT,"SuPb_St01",DEFAULT,%vt_AdjustWin%,DEFAULT,500,DEFAULT,"Microsoft Sans Serif|%_dlgFontSize%|40|34","%t_DlgTextColor%",DEFAULT`
the text size does not change during the resize activity. So how can I do this? My second thought was that there might be a DialogControlSet() setting for that, but I am not seeing one that affects the font settings of a STATICTEXT or VARYTEXT control.
I also tried setting:
DialogProcOptions(tw2_Hnd, @dpoDisable, 3)
before changing the _dlgFontSize value, and then
DialogProcOptions(tw2_Hnd, @dpoDisable, 0)
after changing the _dlgFontSize variable value (thinking that might force the dialog to redraw), but no joy.
There must be a way to do this since there is a resize event and one can watch the values of the dialog's width/height change in tiny increments... surely there must be a way to change the size and position of the text in the dialog as its dimensions change..?