What would be the best practice to change the button size of a TAdvToolbar on a TAdvDockPanel?
If you want that both the button and the picture used on the button is scaled, I cannot see another solution than adapting the button size as well as the image size on the virtual imagelist.
To automatically position the toolbars, you can use AdvDockPanel.ArrangeToolBars.
I tried using the ArrangeTooBars, but it only seems to move the toolsbars to the left, eliminating any white space between the toolbars on the same line. It does not seems to wrap them to prevent a toolbar from hiding some buttons that don't fit horizontally due to other toolbars on the same line. I'd like to have toolbars expand to show all their buttons and force other toolbars that don't fit to move to the next line. Only hide buttons when it is the only toolbar on the line and still does not fit the width of the dock panel. Hope that made sense.
We are currently checking the way you are implementing this.
We will give you an answer as soon as possible if and how it is feasible.
From
my experience, to get the DPI scale correctly you need to get the
PixelsPerInch from your monitor and not from the screen. The screen will
only retrieve the PixelsPerInch from your primary monitor.
A possible suggestion is for force a new autosize of the toolbar after scaling, i.e.