Page 1 of 1

StaticText VertScrollbar over Text

Posted: Fri Oct 22, 2010 19:13
by FTC
Hi,

I have a statictext window and set the VertScrollbar property to true. Now the Scrollbar appears when the text is too long, that's how it should be, but..
The scrollbar is drawn over the text, or said differently, the text is not wrapped correctly.
Image
(Red bars next to the static text)
Also I would like the scrollbar to be vertically centered.

I already searched the forums and tried casting the window into a scrollablepane and set the contentArea property, but it says "There is no property named 'Content Area' available in this set" and then the application crashes.

What can I do?
greetings

Re: StaticText VertScrollbar over Text

Posted: Mon Oct 25, 2010 16:11
by FTC
I found a hotfix, when I use setText the first time, the scrollbar appears, but the text is croped by it. When I use setText with the scrollbar already visible, the text is wrapped correctly. Without any space between the scrollbar and the text, but at least it is not hidden by the scrollbar. Still isn't there a better way?

greetings