- Notifications
You must be signed in to change notification settings - Fork169
-
BetaWas this translation helpful?Give feedback.
All reactions
Hi Jens,
The disappearing scrollbars are a design feature of Turbo Vision. In your case, the logic that is being applied is inTEditor::setState
andTListViewer::setState
. These methods hide or show the scrollbars on purpose.
In order to change this behaviour, you should override these methods in your own subclass. I believe the simplest solution may be to always call theshow()
method on the scrollbars, like this:
voidTMyEditor::setState(ushort aState,bool enable){TEditor::setState(aState, enable);if (hScrollBar) hScrollBar->show();if (vScrollBar) vScrollBar->show();}voidTMyListBox::setState(ushort aState,bool enable){TListBox::setState(aState…
Replies: 1 comment 2 replies
-
Hi Jens, The disappearing scrollbars are a design feature of Turbo Vision. In your case, the logic that is being applied is in In order to change this behaviour, you should override these methods in your own subclass. I believe the simplest solution may be to always call the voidTMyEditor::setState(ushort aState,bool enable){TEditor::setState(aState, enable);if (hScrollBar) hScrollBar->show();if (vScrollBar) vScrollBar->show();}voidTMyListBox::setState(ushort aState,bool enable){TListBox::setState(aState, enable);if (hScrollBar) hScrollBar->show();if (vScrollBar) vScrollBar->show();} When it comes to the size of the list box, the issue is again the property |
BetaWas this translation helpful?Give feedback.
All reactions
-
BetaWas this translation helpful?Give feedback.
All reactions
-
okay, I have done it with this Code:
|
BetaWas this translation helpful?Give feedback.