diff options
Diffstat (limited to 'FL/Fl_Menu_Item.H')
| -rw-r--r-- | FL/Fl_Menu_Item.H | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/FL/Fl_Menu_Item.H b/FL/Fl_Menu_Item.H index 57331caba..e797865e2 100644 --- a/FL/Fl_Menu_Item.H +++ b/FL/Fl_Menu_Item.H @@ -54,8 +54,7 @@ class Fl_Menu_; /** The Fl_Menu_Item structure defines a single menu item that is used by the Fl_Menu_ class. - <UL> - <PRE> + \code struct Fl_Menu_Item { const char* text; // label() ulong shortcut_; @@ -79,10 +78,9 @@ class Fl_Menu_; FL_MENU_DIVIDER = 0x80, FL_MENU_HORIZONTAL = 0x100 }; - </PRE> - </UL> + \endcode Typically menu items are statically defined; for example: - <UL><PRE> + \code Fl_Menu_Item popup[] = { {"&alpha", FL_ALT+'a', the_cb, (void*)1}, {"&beta", FL_ALT+'b', the_cb, (void*)2}, @@ -101,7 +99,7 @@ class Fl_Menu_; {"check", FL_ALT+'i', 0, 0, FL_MENU_TOGGLE|FL_MENU_VALUE}, {"box", FL_ALT+'i', 0, 0, FL_MENU_TOGGLE}, {0}}; - </PRE></UL> + \endcode produces: <P ALIGN=CENTER>\image html menu.gif </P> |
