You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to hide the scroll bar of TBEditField? I tried to find a way to change the skin of the scroller to blank, but I couldn't.
I wanted to use TBEditField as a read-only text label, that wraps its text according to its size. But I don't want the scroller to show up. And I don't want the border either. The TBTextField gives just one line of text. Or maybe there is a better widget for this than TBEditField?
The text was updated successfully, but these errors were encountered:
No there isn't.
TBEditField::UpdateScrollbarVisibility is always setting y-scrollbar depending on "multiline && !m_adapt_to_content_size". Adding SCROLL_MODE to it would be nice IMO. Another personal wish i have is mobile-style scrollbars (that takes no space and fades in/out only when scrolled).
There is a workaround though. You could wrap it in TBScrollContainer which already has SCROLL_MODE like this:
Oh, and now i realize that was overly complicated since you always wanted scrollbars off. So you can just skip the whole part wrapping it in a TBScrollContainer and use the adapt-to-content attribute :)
virtual-width will guide the initial measuring so that wrapping happens at that limit by default (but still allowing it to wrap somewhere else within its min and max constraints)
Is there a way to hide the scroll bar of
TBEditField
? I tried to find a way to change the skin of the scroller to blank, but I couldn't.I wanted to use
TBEditField
as a read-only text label, that wraps its text according to its size. But I don't want the scroller to show up. And I don't want the border either. TheTBTextField
gives just one line of text. Or maybe there is a better widget for this thanTBEditField
?The text was updated successfully, but these errors were encountered: