|
||||||||
Caption Buttons |
||||||||
Whenever you take your mouse cursor to the top-right corner of a skinned window frame and hover over the buttons (close/minimize/maximize/restore/help) SkinBuilder changes the visual aspect of the buttons in order to indicated Control states. Changing this effect becomes possible via adding various images which represent each state button.
1. First off all, the following four control states provided in "Properties pane" 2. Secondly, you need to specify the size (Width and Height) of each button ("restore" button sizes are equal to "maximize" button ones). These values must be proportionally adjusted to "Side width" size. If one state image button is bigger than the frame side, it will look very strange even when the button changes its state. If one image design is bigger than the other, it can be acceptable in any state, but in case when Semy-transparency is properly used you can reach the result of shape and form changing. Let's add a "Close" button in our skinning example being guided by the following steps (make sure the appropriate Window Frame checkbox is marked and "Close Button" element is selected in "Default Controls" pane):
Concerning our skin adjustment all buttons have the same height (23 px) but the different width: "Close button" - 46 px "Maximize button" - 25 px "Minimize button" - 29 px Y Offsets is the same (1px) for all buttons but X Offsets vary: "Close button" - 8 px "Maximize button" - 54 px "Minimize button" - 79 px Now look at the following pictures to see how the caption buttons change in four control states taking the close image as an example:
|
||||||||