-
Beta Was this translation helpful? Give feedback.
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 void TMyEditor::setState(ushort aState, bool enable)
{
TEditor::setState(aState, enable);
if (hScrollBar)
hScrollBar->show();
if (vScrollBar)
vScrollBar->show();
}
void TMyListBox::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 |
Beta Was this translation helpful? Give feedback.
Hi Jens,
The disappearing scrollbars are a design feature of Turbo Vision. In your case, the logic that is being applied is in
TEditor::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 the
show()
method on the scrollbars, like this: