Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
awksed is currently offline  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.
 
Read Message
Read Message
Previous Topic: [SOLVED] Lib Curl undefined reference
Next Topic: [SOLVED] Invalid memory access on ImageDraw::Init (X11)
Goto Forum:
  


Current Time: Thu Apr 25 14:56:36 CEST 2024

Total time taken to generate the page: 0.02593 seconds