PxPlus User Forum

Twitter Twitter Twitter

Author Topic: titlebar has impact on resize actions  (Read 1299 times)

Thomas Bock

  • Diamond Member
  • *****
  • Posts: 177
    • View Profile
titlebar has impact on resize actions
« on: November 15, 2018, 03:12:17 AM »
After defining a titlebar panel as a library default the resize actions change.
The environment is PxPlus V14, SCS, Win10

  • The window isn't maximized by double clicking the titlebar any more. (I think that has been reported before.)
  • The resize corner (bottom right) is drawn but not active(?). The only way to resize a window is to move the mouse over the window border on the right hand side. Despite the cursor shape you can resize the window in all directions now. All other borders are disabled.
    In the Data Dictionary the resize corner works, but the top and left borders don't. That's why I see a relation between menubar and titlebar. Our panels don't use menubars, they only use titlebar panels and statusbars.
  • Only the upper half of a statusbar is displayed in a maximized window with the taskbar option "small buttons in taskbar" enabled.

Jane Raymond

  • Staff
  • Diamond Member
  • *****
  • Posts: 280
    • View Profile
    • PVX Plus Technologies
Re: titlebar has impact on resize actions
« Reply #1 on: November 15, 2018, 09:19:45 AM »

Thomas,
  • Here is a quote from the Custom Title Bar Display section of the Custom Title Bars documentation:
    Quote
    If the standard Windows title bar is replaced using a caption-less frame style (see Frame Style above), certain Windows behaviours that are dependent on the caption bar will no longer be available or will be available in a different format. For example, the custom title bar will have no indication to show which panel is active, unlike the Windows caption bar that is dimmed when inactive. In addition, double-clicking the custom title bar will not maximize/restore the panel, nor will moving the panel against the top of the screen. Finally, moving the panel by clicking and dragging the Windows caption bar will be replaced by implementing full screen drag (see Full Screen Drag), which allows you to move the panel by clicking and dragging any blank area of the panel.
    Continue to use the Windows caption bar with your custom title bar to retain these features.
  • Depending on the type of frame is chosen for the title bar, Windows does not support re-sizing for all of them, so PxPlus had to add re-sizing logic to the right, bottom and corner edges to handle it. The sensitivity of the grabbing the edges to resize is slightly different, but is still there. If you use the Windows caption bar with your custom title bar it will retain the Windows resizing characteristics.
  • Maximizing PxPlus panels may not be exact, as the panels width and height are integral and are rounded to the nearest line/column. I found no difference in the size of the maximized panel whether it had a Windows caption or not, and whether it had a custom tool bar or not.


Jane Raymond
Software Developer
PVX Plus Technologies Ltd.