• Welcome to PlanetSquires Forums.
 

CScrollWindow

Started by Paul Squires, August 30, 2017, 12:03:36 PM

Previous topic - Next topic

Paul Squires

Awesome and simple...once I figured out how the client areas related to each other in order for the scrollbars to be invoked. :)

Works perfectly and has saved me a lot of code. Thanks!

Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

José Roca

The use of scrollable windows has become unavoidable if one wants to make an application usable with different DPIs. Many applications design popup dialogs whose OK, Cancel, etc., buttons at the bottom became invisible and unreachable with the mouse. At runtime, we need to calculate if our dialog fits in the available desktop space and, if not, make it smaller and scrollable. Imagine that you make a dialog that uses all the available height of your monitor at 96 DPI... at 192 DPI you will only see half of the dialog!

José Roca

And it can also be used with tab pages, i.e. tab pages can be bigger than the available space in the tab control and scrollable.