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
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.
Dave i have a if then else in my code the above was a simple example
[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]
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.