OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: Peter2 on August 12, 2013, 05:08:23 AM

Title: "Floating" icons from Portrait to Landscape
Post by: Peter2 on August 12, 2013, 05:08:23 AM
(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
Title: Re: "Floating" icons from Portrait to Landscape
Post by: owenwengerd on August 12, 2013, 07:44:39 AM
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.
Title: Re: "Floating" icons from Portrait to Landscape
Post by: Peter2 on August 12, 2013, 08:00:10 AM
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 ..
Title: Re: "Floating" icons from Portrait to Landscape
Post by: owenwengerd on August 12, 2013, 05:32:40 PM
What you have done should work fine. I would use only a single form, and simply change its size and rearrange the controls programmatically.