I have been toying with this for some time and am curious if someone has a solution.
Generally, I design my windows to fit a screen less than 80% of 1920x1080 using the windows scaling value of 100%. This allows some scaling, better display on 4K monitors, etc.
However, I am finding that some of my users (and myself) will have trouble with font size even on larger monitors. It is possible, using winclass@() to set the font and scaling for the window default, which should help some users. But, some of my windows may need to be scrolled to do so.
I can add horizontal and vertical scrollbars (%ch[hscrollbar,vscrollbar]). This does two things. It makes the window scrollable, which is nice, but adds additional size to the window to support the scroll bar, whether or not it is actually used which is not nice. So far, I have resisted using this technique for every window I create.
I do not know how other programs (such as Word or Excel, quicken, etc.) dynamically add/remove scrollbars to their windows. I know I am missing something here!
If what those programs do is not possible with ClearWin, is there a method by which the size of a child window can be determined before it is used by the parent in order to use the scrollbar options in the %ch window? Or, are there alternatives I should consider instead?
Always up for learning! Bill