Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

The dockpanel was reduced to the right when I set vcl style

Hi,

I set the vcl style in 10.4(LMD version 2020.4), but I placed a dockpanel to the right of the docksite. 

After the program starts, I maximize the form, then minimize it to the taskbar, and finally restore it.

The dockpanel space will be reduced to the right.

Do you have any suggestions? Thanks.
zip
zip
Dock.zip
172K

Comments

  • 3 Comments sorted by Votes Date Added
  • I've:

    - started the app
    - maximized the form
    - minimized to taskbar
    - activated back from taskbar (form now in maximized state)
    - restore to original state

    and.. nothing bad happens. The form looks originally (like after app starting). Following is a comparison of two layouts:


    image
  • edited July 2020 Posts: 10Vote Up0Vote Down
    Hi Eugene Balabuev,

    The problem still exist in my test environment which C++ Builder 10.4 with patch 1 and set vcl style.
    I found it will trigger event twice on LMDDockSite OnCanResize() when activated back from taskbar.

    It got the unnormal width and height in first trigger event that cause dockpanel was reduced.
    Check it was the same sitaution on TFrom's OnCanResize() and WindowProc which received twice.

    Did you have any suggestion to avoid this bug?
    Thank you.

    image
  • I can confirm several Form.OnResize events with strange size values. This is a bug of Delphi 10.4. I cannot imagine how we can workaround it. So, you are welcome to tell Embarcadero about this issue.
Sign In or Register to comment.