Author:halw

Date:2011-11-08T21:21:53.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@1009 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
halw
2011-11-08 21:21:53 +00:00
parent 8ca8ca6ade
commit a7c200496f

View File

@@ -47,4 +47,34 @@ In addition to using the size definitions provided, it is possible to create you
Figure 3. EiffelRibbon tool with the Size Definition Editor pinned open.
Use the Size Definition Editor to create custom size definitions for your ribbon designs. The '''Add button''' button will add a new button placeholder to a custom size definition. A selected button placeholder can be altered to show or hide its label and use its small or large size.
[[Image: Size Definition Editor 02|Button placeholders]]
Figure 4. Two button placeholders in a custom size definition; one selected, small, and with label hidden, the other unselected, large with label visible.
Once a custom size definition has been designed, it can be named, saved, and used in a ribbon design.
[[Image: Size Definition Editor 03|Name field and Save button]]
Figure 5. The Size Definition Editor naming field and '''Save''' button.
==Scaling policy==
The notion of adaptive layout includes the ability to specify preferred sizes for elements of a group and a scaling policy that can influence how the group reacts to resizing. More detail on size definition and scaling policy is available in Microsoft's '''[http://msdn.microsoft.com/en-us/library/windows/desktop/dd316927(v=vs.85).aspx ribbon documentation]'''.
The EiffelRibbon tool allows you to specify ideal sizes and scale policy for a groups elements through the '''Ideal sizes''' radio buttons and the '''Scale''' checkboxes, as shown in Figure 6 below.
[[Image: EiffelRibbon design tool 02|Scaling policy elements: "Ideal sizes" and "Scale"]]
Figure 6. A group definition showing its size definition and the scaling policy elements "Ideal sizes" and "Scale".