[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnue-dev] Customized menus in Forms etc.
From: |
Jan Ischebeck |
Subject: |
[Gnue-dev] Customized menus in Forms etc. |
Date: |
Mon, 29 Jul 2002 18:55:33 +0200 |
User-agent: |
Mutt/1.4i |
I've some additions/modifications to the technote.003 in common (about
Menus and Triggers..)
I will set the old/changed definitions in brackets behind the changes.
1. use a <menu><submenu><menuentry> structure
to define single menu entrys or a whole menu
(old: just <GMenu> and located by a string like "File.Save")
2. items in the standart menu could be overwriten or removed by an
new entry with the same name
change it: <menuentry name="f_save" label="Save"
event="myFSaveTrigger">
remove it: <menuentry name="f_save" drop="Y">
3. don't create a seperate <toolbar> tag, but add an <option> to
the <menuentry> tag to make it appear in the toolbar.
(old: Toolbars link directly to menu items ....)
4. a sample menu
...
<menu>
<submenu name="File">
<menuentry name="Load" action="_load_a_form">
<options>
<option value="load.png" name="icon"/>
<option value="Y" name="toolbar"/>
</options>
</menuentry>
<menuentry name="Save" disabled="Y"/> <!-- to show Save in grey -->
<menuentry name="Save_As" drop="Y"/> <!-- and remove Save As -->
<menuentry name="sep" type="seperator"/>
<submenu name="Recent files" init="list_recentfiles">
...
</submenu>
</submenu>
...
</menu>
5. all <menuXXX> elements can hold an attribut "init", which defines a trigger
which should be called when this element will be added to the menu bar.
f.e. <submenu label="My Forms" init="addFormFileLinksFromDirectory">
(old: If a GMenu is of type dynamic the trigger will be used to
manipulate the submenu selections prior to displaying. )
Jan Ischebeck
address@hidden
Jan Ischebeck e-Services
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnue-dev] Customized menus in Forms etc.,
Jan Ischebeck <=