This menu demonstrates the ability to override Background and Border colors on the Group and Item objects.
<p>
The "Tools" group uses the Main object's color property settings. It has one nested Group, "Mail & News" which sets it's own Background, Selected and Border colors.
<p>
The "File" Group object and "Edit" Group object each set their own color properties, while in the "Help" Group, each Item object has it's own colors.
<p>
By default, each property which can be inherited is set to the string value "Inherited" and therefore inherits the settings from it's parent in the WebMenu Object Model. A value other than "Inherited" will override the parent object's value. In the case of the <b>BackgroundColor</b> properties, an empty string can indicate that the region should be transparent.
<p>
Finally, this sample demonstrated the feature to disable an Item object. The "Update" Item in the "Tools" Group has had it's <b>Enabled</b> property set to false. This nullifies any action associated with the Item without requiring you to make any other changes to it's properties. All disabled Items have their text color set by the <b>DisabledTextColor</b> property on the Main object.
</td>
</tr>
<tr>
<td colspan=2>
<p><b>View the Code:</b></td>
</tr>
<tr>
<td width=10></td>
<td>
<p>
The code for this sample is available in the product installation directory:
<ul>
<li><b>multicolor.wms</b> - The WebMenu Studio project file.
<li><b>default.htm (this file)</b> - Uses the WebMenu compiled output and discusses the sample.
<li><b>./includes/*</b> - The WebMenu output compiled from the studio application.
<li><b>./images/*</b> - The images used in this sample.