Home » Community » Newbie corner » How do I add scrollbars to a dialog
How do I add scrollbars to a dialog [message #51985] |
Sun, 30 June 2019 14:46 |
awksed
Messages: 61 Registered: April 2012
|
Member |
|
|
I have a TopWindow derived dialog with (currently) empty layout and StaticText and ArrayCtrl controls inserted with new and Add().
The dialog is resizable.
I wish to allow controls hidden by the resizing to be scrolled into view.
I added to the dialog ctor:
AddFrame(m_Sb); // (ScrollBars m_Sb;)
m_Sb.HideX();
m_Sb.WhenScroll = [=] { Ctrl::Refresh(); };
but no joy (no scrollbar appears).
How do I do this?
Thanks.
|
|
|
Goto Forum:
Current Time: Thu Apr 25 14:56:36 CEST 2024
Total time taken to generate the page: 0.02593 seconds
|