|
Template Buttons |
Top Previous Next |
|
You may specify a set of fixed graphics to be linked inside your program, to display over the buttons. Each graphic will be adapted to the size of the button.
If you choose not to draw borders, the graphics you pick should have their own. As the template stretches the graphic to fit the actual button size, the graphic may look distorted. To minimize that, the template has support for small and big buttons, and for squared and rectangular ones. You have also another graphic for disabled buttons. Setting a different graphic for disabled buttons gives the user a strong feedback about what buttons not to use. The normal (small) and the disabled buttons are mandatory. You should specify the other three when the buttons have a border on their own, to enhance the aspect of all the buttons in your program. If you accept the buttons by default, you will have a good quick start. The graphics you pick here are automatically included in the project, so they are linked into your executable. Otherwise, they would be read from disk for each button draw. The template automatically synchronizes button's state with the graphics in most situations. However if you need to manually refresh the button's graphics you may do it calling the refresh procedure manually from the embed as needed. You may replace the global set of graphics for another one at the local level (See "Local Extension").
Standard button: This is a small rectangular shaped button, that will be used for regular buttons. Before applying the template, using Windows XP, a regular Clarion 5.5 non-flat button will look like this, with and without XP themes activated respectively:
Using Windows XP, a regular Clarion 6.x non-flat button with Default XP manifest included, will look like this, with and without XP themes activated respectively:
By applying the template, you have several options as how to make your buttons look. You may use your own graphics, or you may use the supplied with this template. There are several set of buttons you can choose from. For example, if you use the Bubble set of buttons you will get buttons like these:
|