jjschwartz
Technical User
I am displaying various text in a statictext box. I don't want to use scroll bars or have it user-adjustable in any way.
Sometimes the text is too much to fit into the statictext box. When this happens I would like to shrink the fontsize.
I have no trouble adjusting the fontsize (I'm a relative newbie but I can do that). It's figuring out *when* the text is too much and the font needs to be changed that I'm having trouble with. Counting characters or words isn't reliable.
I need to determine when a window *would* add scroll bars if it had them to display the text. That seems the best way to decide if not all the text is being displayed. Any suggestions?
Thanks in advance.
Jeff Schwartz
Sometimes the text is too much to fit into the statictext box. When this happens I would like to shrink the fontsize.
I have no trouble adjusting the fontsize (I'm a relative newbie but I can do that). It's figuring out *when* the text is too much and the font needs to be changed that I'm having trouble with. Counting characters or words isn't reliable.
I need to determine when a window *would* add scroll bars if it had them to display the text. That seems the best way to decide if not all the text is being displayed. Any suggestions?
Thanks in advance.
Jeff Schwartz