Hi,
I am using the Office2007Blue.isl file as a basis for creating my own style and I am changing all relevant controls to shades of green specific for my application.
How can I change the default Blue resource for the UltraButton?, so that the UltraButton background becomes any colout I want?
The import and Export options for Resources just seem to be for *.isl files. Shouldn't I be able to import a jpeg file of a colour I want as a Resource or edit the colour of an existing Resource...
Hope someone can help.
Hi Alex,
I'm not sure I understand your question. You can add, edit, or remove resources by going to the resources tab in AppStylist. You can specify which resources are applied to a role (such as the UltraButtonBase role) by looking at the Resources chunk on that UIRole.
Hi Mike,
I have seen the screen you have shown in your reply. My issue is that if I am using the Office2007Blue.isl as a template how can I add a button resource colour of Green to the screen you included in your reply. Currently all the included resources are either shades of blue or orange.
What I really want to do is have a Green button but it seems that button colours are set by resources and not the colour palette option you get for other controls.
Alex.
I'm afraid I still don't understand what you are asking.
When you say you want "a Green button" does you mean a single button? Do you mean you want to make all of the buttons in your application green instead of blue?
Do you want your whole application to be green instead of blue?
The Office2007Blue.isl isn't really intended to be used as a template as far as I know.
I like the Office2007Blue styling but I need to make it a Green style. I have managed to change the colour of the other controls like the UltraGroupBox BackClolour to a Green that is suitable and I have changed the UltraGroupBox BorderColour to another Green. The colours for these can be set by using the Colour Palette Editor.
However buttons (UltraButton) are coloured by a Resource, I am not sure really what this is but I am assuming it is a picture of a colour like a JPEG image that is then overlayed on to the UltraButton as it cannot be set using the Colour Palette Editor like the other controls unless I am missing something obvious.
So in short, Yes I want the whole application to be shades of Green instead of shades of Blue and I am using the Office2007Blue.isl as the style is perfect except for the colour.
I am actually editing a Office2007Blue.isl file directly as when I tried to use it as a template and set the Default/Hot Track/etc.. colours it didn't look right.
Hope you can help,
A Resource is like an appearance. It's just like a UIRole, in that it has properties for BackColor, ForeColor, ImageBackGround, etc. The difference is that a Resource is not associated with any one particular object. It's a generic appearance that you can then apply to any UIRole. The advantage of this is if you want to apply the same set of colors to several different UIRoles - you can create one resource and then go to the UIRoles you want and assign that same resource to each one. Then if you make a change to the resource, it will affect all the roles it applies to.
So in your case you have a couple of options. You can modify the resource itself, which will affect everything that resource is applied to. Or you can modify the button's UIRole and remove the Resource from it, and then apply properties directly to the UIRole or apply some new resource that you create.
I've been tearing my hair out over the button styles in the Office ISLs as well - until I noticed that the button backgrounds are Images.
That prompts another question - is there a way to export the images from the ISLs to use them as a basis for own images - i.e. adjust the color of the HotTrack appearance based on an Office2007 style?
Yes, there's an option on the File menu for "Export Images..."