Hi!
Use memlines() function, with word wrap option use SET MEMOWIDTH command to set width of memo line to appropriate value for edit box. Than multiply number of lines to height of editbox font (you can get it using FONTMETRIC( ) function). If result number more than height of edit box - scroll bar is visible.
>Hi all,
>I have an editbox owner class based on container with some addins. This control is sizeable and have a picture (like a down arrow) to indicate that more text exist when the control was sized to one row.
>I need to know if the scrollbar is visible to make this picture invisible (because the user have the scrollbar to know that more text exists)
>
>Thanks in advance
>Esteban
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.