| Back to other parameters
|
Example 1
Source menu file |
|
Menu source
<?xml version = "1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE Menu PUBLIC "-//Javabase//DTD IconTreeMenu 1.0//EN" "http://www.javabase.co.uk/IconTreeMenu/IconTreeMenu.dtd"> <Menu textcolor="0000AA" folderopen="folder_open.gif" tooltiptext="Tooltip" mouseovercolor="AAAAFF" mouseovertextcolor="FFFF00" icon="file.gif" folder="folder.gif"> <Item name="BBC News" url="http://news.bbc.co.uk/"/> <SubMenu name="Search"> <Item name="Google" url="http://www.google.com/" tooltiptext="Go Search!"/> <Item name="Yahoo" url="http://www.yahoo.com/" tooltiptext="Tooltip"/> </SubMenu> <Item name="Java" url="http://java.sun.com/"/> <Item name="Multi-\line !"/> </Menu>
|
|
Example 2
Source menu file |
|
Menu source
<?xml version = "1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE Menu PUBLIC "-//Javabase//DTD IconTreeMenu 1.0//EN" "http://www.javabase.co.uk/IconTreeMenu/IconTreeMenu.dtd"> <Menu textcolor="0000AA" folderopen="folder_open.gif" tooltiptext="Tooltip" mouseovercolor="AAAAFF" mouseovertextcolor="FFFFFF" icon="file.gif" folder="folder.gif"> <Item name="BBC News" url="http://news.bbc.co.uk/"/> <SubMenu name="Search"> <Item name="Google" url="http://www.google.com/" tooltiptext="Go Search!"/> <Item name="Yahoo" url="http://www.yahoo.com/" tooltiptext="Tooltip"/> </SubMenu> <Item name="Java" url="http://java.sun.com/"/> <Item name="Multi-\line !"/> </Menu>
|
|
Specifying Colors by RGB values
As in HTML, colors for menus can be specified using their Red,Green and Blue components in hexadecimal notation. These values are written with the following syntax:
"RRGGBB"
RR is red value, GG the green value, and BB the blue value. The best way to go about getting color in this form is to use a graphics program to chose one and then look at it's red, green and blue components.
Color help
Back to other parameters |