PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: CScrollWindow  (Read 156 times)

Paul Squires

  • Administrator
  • Master FireFly Member
  • *****
  • Posts: 8104
  • Windows 10
    • PlanetSquires Software
CScrollWindow
« on: August 30, 2017, 12:03:36 PM »

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!

Logged
Paul Squires
PlanetSquires Software
FireFly Visual Designer, WinFBE Editor

Josť Roca

  • Moderator
  • Master FireFly Member
  • *****
  • Posts: 2785
    • Josť Roca Software
Re: CScrollWindow
« Reply #1 on: August 30, 2017, 12:29:09 PM »

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

  • Moderator
  • Master FireFly Member
  • *****
  • Posts: 2785
    • Josť Roca Software
Re: CScrollWindow
« Reply #2 on: August 30, 2017, 01:05:33 PM »

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.