"Floating" icons from Portrait to Landscape

Started by Peter2, August 12, 2013, 05:08:23 AM

Previous topic - Next topic

Peter2

(Sorry, I don't know the right words in German and especially not in English).

I want to try a dialogue which looks like a classical toolbar: 5 or 6 small icons, not more. The simple toolbar has the possibilty that the user changes the orientation from "Portrait" to "landscape" (from 1x6 to 6x1 icons).

What's the best way to do it in ODCL from 1x6 to 6x1? (to 2x3 to 3x2 .. )

Palettes? Modeless dialogues? What's the keyword I have to look in the help?

Thanks
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10

owenwengerd

I would probably choose between a modeless dialog or a dockable control bar depending on whether or not I want it to be dockable. I don't know if it's feasible to make it resizable, and dynamically change the shape when it is resized. I'm inclined to think that would be too difficult, and you would need to add a button that changes the shape in its OnClicked event handler rather than doing it via dynamic resizing.

Peter2

In the meantime I tried to create two palettes, non resizeable, one "vertical 1x6" and one "horizontal, 6x1". In my main-dialogue I have two buttons: "display vertical window / display horizontal window". It works, but maybe I will make some adjustments ..
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10

owenwengerd

What you have done should work fine. I would use only a single form, and simply change its size and rearrange the controls programmatically.