Textarea scrollbar issue

Is any issue with textarea field with scrollbars?
I am try to hide-show from code but is no working?
I am miss something?
simple code
TextArea have 10 lines,and height for 3 showed lines.
In a button.

Dim warninglines() As String = ReplaceLineEndings(txtwarnings.Text, EndOfLine).Split(EndOfLine) Dim warningCount As Integer = warninglines.UBound If warningCount > 3 Then txtwarnings.ScrollBarVertical = true end if

whats not working?
are they showing all the time?
never showing?
showing only when you mouse over the scrollbar area?

OSX? WIndows? Both?

Sorry Dave…
I am on Mac with last xojo version
Showing all the time.
In Appearance multiline ON,ScrollBarVertical ON.
I have and with OFF,but the same results.

you realize your code turns it ON, but never turns it back OFF again?

plus you yourself are turning it on

where is it ever OFF?

Dave i have a if then else in my code the above was a simple example :slight_smile:

[code] Dim errorlines() As String = ReplaceLineEndings(txterrors.Text, EndOfLine).Split(EndOfLine)
Dim warninglines() As String = ReplaceLineEndings(txtwarnings.Text, EndOfLine).Split(EndOfLine)
Dim warningCount As Integer = warninglines.UBound
Dim errorcount As Integer = errorlines.UBound

If errorcount > 7 Then
txterrors.ScrollBarVertical = True
End

If warningCount > 7 Then
txtwarnings.ScrollBarVertical = true
ELSE
txtwarnings.ScrollBarVertical = false
End[/code]

post a same project… I cannot get it to NOT work properly

On OS X I think the setting in the system preferences overrides this. On the “General” tab there is “Show scroll bars” – if this is set to “Always” they will never hide.

not true… I just checked… in my SysPref I have it set to “always”, yet I can hide them in an XOJO App…

…by turning it off (ScrollbarVertical = False), which is not what I meant.

If ScrollbarVertical is true, then the system preferences applies. You can even change it while the application is running.

I like the color of the scrollBar adapted in the textArea background color.
Will be nice if the same was for listbox…