Static Text Control Wordwrap
-
How can I retrieve text from a static text control that has wrapped the text , I want to get the text with the line breaks that the control added , or I would like to know the number of lines the wrapped text is printed on . I would also want to know what text is not displayed because it has "overflowed" off the viewing area . Thanks for reading this . Davey
-
How can I retrieve text from a static text control that has wrapped the text , I want to get the text with the line breaks that the control added , or I would like to know the number of lines the wrapped text is printed on . I would also want to know what text is not displayed because it has "overflowed" off the viewing area . Thanks for reading this . Davey
I don't see any way to get this info from a static control. The wrapping is probably done at the time the text is rendered. You could parse the text yourself and calculate wrap positions using GetTextExtentExPoint() and render the text youself. Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
-
I don't see any way to get this info from a static control. The wrapping is probably done at the time the text is rendered. You could parse the text yourself and calculate wrap positions using GetTextExtentExPoint() and render the text youself. Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
-
How can I retrieve text from a static text control that has wrapped the text , I want to get the text with the line breaks that the control added , or I would like to know the number of lines the wrapped text is printed on . I would also want to know what text is not displayed because it has "overflowed" off the viewing area . Thanks for reading this . Davey