Attributes

Top  Previous  Next

When you press the "Attributes" button you will see the following window:

clip0037

These options allow applying several attributes on the original buttons at runtime all over your application, in case you do not want to go window by window changing them.

 

".CUR over buttons" - let you specify a different pointer for the mouse when this hover the buttons. This attribute may be specified for each button in your application, but if you did not it may come handy to set it up from here. This option change the pointer only for the buttons that have template graphics (meaning, those with exception are not considered), except that you choose the following option, "Force pointer for all the buttons".

If you do not want the pointer to be changed for the buttons, just leave this field empty (blank).

 

You have to activate the option "Force buttons to be transparent and flat" in the section "Without XP themes", if your buttons are not Transparent and Flat all over your application. Otherwise, the graphics won't be seeing!

If you left a button either not transparent or not flat, and this option is deactivated, the corresponding graphic won't show, seemed that the template is not working (When in fact it is, so the program will be slightly slower, but you'll see nothing special). This option is not necessary if all your buttons are already transparent and flat.

 

The section "With XP themes" only applies with Clarion 6.x and if the program has the "themes" option enabled, and if the program run on Windows XP with themes activated.

Since XP themes change the aspect of the buttons to a nice graphical one, you may want to leave them that way, if the program runs under XP themes.

When you enable the option "Force graphics on buttons even with XP themes" you get your graphical buttons instead the XP themed ones. That would be an advantage if you want to use nicer buttons (like gradient ones, with borders, etc.).

If you don't enable this option, then you may activate "Force buttons to be not-Transparent and not-Flat". This is important, since XP themes work only on those kind of buttons. Therefore, if you did not design them that way, you may enable this option to see all of them themed.

 

If you wish that Windows XP took over your buttons when themed, they must be Not-Flat and Not-Transparent. This is in contradiction with what is needed to display the button's graphics when Windows is not themed. Since you cannot set your buttons both ways at design-time, you may have three possible strategies:

1) Make all your app buttons Transparent and Flat, and check the option "Force buttons to be not-Transparent and not-Flat" (for when the program runs under Windows XP with themes activated).

2) Make all your app buttons Not-Transparent and Not-Flat, and check the option "Force buttons to be transparent and flat" inside "Without XP themes", for when the program run without themes.

3) You don't care about consistency among your buttons, and check both options.

Personally, I would go for the first option for a performance issue (however, it may not be noticeable).