Menu
From TrillWiki
[edit] Context Menu Controls
Context menus (available only in 1.0+) are alot of code. However most of it is repetetive. Just lots of icons to code mainly, a list of them all is below. The difficulty is eased in 3.0 if one links into the STIXE icon packs: the skinner no longer needs to code all of these icons, the iconpack code will do it for you.
| Miscellaneous |
| about |
| away-message |
| away-message-edit |
| away-message-new |
| buddy-icon-clear |
| buddy-icon-set |
| check (tick when option is selected) |
| close |
| connection-global-disconnect |
| connection-global-reconnect |
| connection-manager |
| connection-prefs |
| connection-remove |
| connection-toggle-status-window |
| contact-add |
| contact-information |
| contact-massmessage |
| contact-remove |
| container-cascade |
| container-default |
| container-detach-all |
| container-detach-all-close |
| container-new |
| container-tile |
| docking-bottom |
| docking-left |
| docking-off |
| docking-on |
| docking-right |
| docking-top |
| donate |
| edit-clear-all |
| edit-copy |
| edit-cut |
| edit-delete |
| edit-emoticons (Not available yet) |
| edit-formatting-bold |
| edit-formatting-color-background |
| edit-formatting-color-foreground |
| edit-formatting-font-larger |
| edit-formatting-font-normal |
| edit-formatting-font-smaller |
| edit-formatting-italics |
| edit-formatting-underline |
| edit-insert-picture |
| edit-paste |
| edit-paste-special |
| edit-select-all |
| edit-setstatus |
| edit-sounds |
| exit |
| filetransfer-close |
| filetransfer-execute |
| filetransfer-openfolder |
| group-rename |
| help |
| history |
| link-copy |
| link-open |
| link-open-new |
| list-collapse |
| list-collapse-all |
| list-expand-all |
| list-floating-all-off |
| list-floating-off |
| list-floating-on |
| list-move-to-item |
| metacontact-create |
| metacontact-name |
| metacontact-send-message-to-default |
| metacontact-unbind |
| mystuff-export-html |
| mystuff-export-xml |
| mystuff-remove |
| mystuff-remove-all |
| popup (arrow to show that there's a submenu) |
| preferences |
| sort-by-alpha (not yet added) |
| sort-by-reverse (not yet added) |
| sort-by-status (not yet added) |
| text-clear |
| text-find (might not be added) |
| text-save |
| AIM specific |
| aim-addcontact |
| aim-block |
| aim-changelocalecho |
| aim-changepassword |
| aim-chatignore |
| aim-chatunignore |
| aim-checkmail |
| aim-closesim |
| aim-disabledc |
| aim-disconnect (Doubles up with ICQ-disconnect) |
| aim-editprofile |
| aim-enabledc |
| aim-establishsim |
| aim-findchat |
| aim-formatsn |
| aim-invite |
| aim-joinchat |
| aim-modalert |
| aim-personaloptions |
| aim-reconnect (Doubles up with ICQ-disconnect) |
| aim-removealert |
| aim-renamecontact |
| aim-searchcontact |
| aim-searchemail |
| aim-searchinterest |
| aim-searchname |
| aim-sendchat |
| aim-sendfile |
| aim-sendim |
| aim-sendmessage |
| aim-setalert |
| aim-setaway |
| aim-setback |
| aim-setstatus |
| aim-unblock |
| aim-viewprofile |
| aim-warn |
| ICQ specific |
| icq-addcontact |
| icq-changedetails |
| icq-changepassword |
| icq-closesim |
| icq-establishsim |
| icq-ignore |
| icq-modalert |
| icq-nosmsphone |
| icq-personaloptions |
| icq-readaway |
| icq-removealert |
| icq-renamecontact |
| icq-resetsms |
| icq-searchcontact |
| icq-searchdetails |
| icq-searchemail |
| icq-searchinterest |
| icq-searchuin |
| icq-sendfile |
| icq-sendmessage |
| icq-sendsms |
| icq-setalert |
| icq-setavailable |
| icq-setaway |
| icq-setdnd |
| icq-setffc |
| icq-setinvisible |
| icq-setna |
| icq-setoccupied |
| icq-smsphone |
| icq-toggleauth |
| icq-toggleuin |
| icq-unignore |
| icq-viewprofile |
| icq-visibility |
| IRC specific |
| irc-addcontact |
| irc-ban |
| irc-channelmanager |
| irc-chnick |
| irc-control |
| irc-ctcp |
| irc-dcc |
| irc-dccchat |
| irc-dccechat |
| irc-dccsend |
| irc-deop |
| irc-devoice |
| irc-disconnect |
| irc-display |
| irc-idlewhois |
| irc-ignore |
| irc-joinchannel |
| irc-kick |
| irc-list |
| irc-misc |
| irc-motd |
| irc-op |
| irc-ping |
| irc-query |
| irc-reconnect |
| irc-sendmessage |
| irc-setaway |
| irc-setback |
| irc-setstatus |
| irc-time |
| irc-unignore |
| irc-version |
| irc-voice |
| irc-whois |
| MSN specific |
| msn-addcontact |
| msn-block |
| msn-checkmail |
| msn-clearmail |
| msn-disconnect |
| msn-invite |
| msn-modalert |
| msn-reconnect |
| msn-removealert |
| msn-renamecontact |
| msn-sendfile |
| msn-sendmessage |
| msn-sendmobile |
| msn-setalert |
| msn-setaway |
| msn-setbrb |
| msn-setbusy |
| msn-setdisplay |
| msn-setinvisible |
| msn-setonline |
| msn-setotl |
| msn-setotp |
| msn-setstatus |
| msn-toggleef |
| msn-unblock |
| msn-viewprofile |
| Yahoo! specific |
| yahoo-accountinfo |
| yahoo-addcontact |
| yahoo-checkmail |
| yahoo-disconnect |
| yahoo-ignore |
| yahoo-invite |
| yahoo-joinchat |
| yahoo-modalert |
| yahoo-personaloptions |
| yahoo-reconnect |
| yahoo-refreshcontact |
| yahoo-removealert |
| yahoo-renamecontact |
| yahoo-sendchat |
| yahoo-sendfile (not yet available) |
| yahoo-sendmessage |
| yahoo-setalert |
| yahoo-setavailable |
| yahoo-setbrb |
| yahoo-setbusy |
| yahoo-setcustom |
| yahoo-setinvisible |
| yahoo-setnotatdesk |
| yahoo-setnotathome |
| yahoo-setnotinoffice |
| yahoo-setotl |
| yahoo-setotp |
| yahoo-setstatus |
| yahoo-setsteppedout |
| yahoo-setvacation |
| yahoo-startwebcam |
| yahoo-unignore |
| yahoo-viewprofile |
Phew - just remember I had to create this page, and write the html for all those :p.
Each of the icons fits into the control (type="menu") using the following framework:
- <icon type="" state=""><source name="[ bitmap name ]" left="" right="" top="" bottom=""/></icon>
The type="" bit is where you put one of the icon names from the list above. The "state" will either be "normal" or "hover".
There are also some settings:
- <settings name="" value=""/>
| Name | Description / Value |
| defaultTextHeight | Numerical, how much space to leave verticlly for each line |
|---|---|
| defaultLeftMargin | Numerical, padding from the left of the icontrol to the text |
| defaultRightMargin | Numerical, padding from the right of the icontrol to the text |
| defaultLeftMarginSeparator | Numerical, padding from the left of the icontrol to the separator bar |
| defaultRightMarginSeparator | Numerical, padding from the right of the icontrol to the separator bar |
You can use <background> code, if necessary.
You can set the font using:
- <font source="" type="" size=""/>
Where the source is defined by the font code
The final chunk of code sets some RGB colours. The basic format:
- <color name="" red="" green="" blue=""/>
The settings:
| Name | Description |
| hover-back | The hover background colour |
|---|---|
| hover-fore | The hover foreground colour |
| hover-border | The hover border colour |
| normal-back | The normal background colour |
| normal-fore | The normal foreground colour |
| disabled-back | The disabled background colour |
| disabled-fore | The disabled foreground colour |
| separator-back | The separator bar background colour |
| separator-fore | The separator bar foreground colour |
| popup-back | The background colour when within a submenu |
| popup-fore | The foreground colour when within a submenu |
