Changing the GraphWin Main MenuThe default menus in GraphWin's menu bar
are determined by a bit mask that is the bitwise-or of an arbitrary subset
of the predefined constants Each constant represents one standard menu. The constant long gw.set_default_menu(long mask); defines the set of standard menus. void gw.del_menu(long mask); removes all menus corresponding to 1-bits in Remark: ExampleThe following simple example shows how to set the default menu of a GraphWin. #include <LEDA/graphics/graphwin.h> using namespace leda; int main() { GraphWin gw; //add selected items to the default menu bar (before gw.display()!) gw.set_default_menu(M_FILE|M_EDIT|M_GRAPH|M_WINDOW|M_HELP|M_DONE); gw.display(); gw.edit(); return 0; } |
See also:Customizing the Interactive Interface Manual Pages: |