31 FXMenuTitle* menuTitle =
new FXMenuTitle(p, text.c_str(), icon, menuPane, LAYOUT_FIX_HEIGHT);
42 FXMenuCommand* menuCommand =
new FXMenuCommand(p, text.c_str(), icon, tgt, sel, LAYOUT_FIX_HEIGHT);
53 FXMenuCommand* menuCommand =
new FXMenuCommand(p, (text +
"\t" + shortcut +
"\t" + info).c_str(), icon, tgt, sel, LAYOUT_FIX_HEIGHT);
64 FXMenuCommand* menuCommand =
new FXMenuCommand(p, text.c_str(),
nullptr, tgt, sel, LAYOUT_FIX_HEIGHT);
#define GUIDesignHeight
define a standard height for all elements (Change it carefully)
static FXMenuTitle * buildFXMenuTitle(FXComposite *p, const std::string &text, FXIcon *icon, FXMenuPane *menuPane)
build menu title
static FXMenuCommand * buildFXMenuCommandRecentFile(FXComposite *p, const std::string &text, FXObject *tgt, FXSelector sel)
build menu command (for recent files)
static FXMenuCommand * buildFXMenuCommand(FXComposite *p, const std::string &text, FXIcon *icon, FXObject *tgt, FXSelector sel)
build menu command
static FXMenuCommand * buildFXMenuCommandShortcut(FXComposite *p, const std::string &text, const std::string &shortcut, const std::string &info, FXIcon *icon, FXObject *tgt, FXSelector sel)
build menu command