Mercurial > dwindows
comparison dwtest.c @ 2889:4b075e64536c
C++: Add some simple menu code to see if things are working.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 22 Dec 2022 19:20:39 +0000 |
parents | 86286f528adf |
children | fffb4904c90b |
comparison
equal
deleted
inserted
replaced
2888:ec0d34798706 | 2889:4b075e64536c |
---|---|
1777 HMENUI menuitem,menu; | 1777 HMENUI menuitem,menu; |
1778 | 1778 |
1779 mainmenubar = dw_menubar_new(mainwindow); | 1779 mainmenubar = dw_menubar_new(mainwindow); |
1780 /* add menus to the menubar */ | 1780 /* add menus to the menubar */ |
1781 menu = dw_menu_new(0); | 1781 menu = dw_menu_new(0); |
1782 menuitem = dw_menu_append_item( menu, "~Quit", 1019, 0, TRUE, FALSE, 0); | 1782 menuitem = dw_menu_append_item(menu, "~Quit", 1019, 0, TRUE, FALSE, 0); |
1783 dw_signal_connect(menuitem, DW_SIGNAL_CLICKED, DW_SIGNAL_FUNC(exit_callback), DW_POINTER(mainwindow)); | 1783 dw_signal_connect(menuitem, DW_SIGNAL_CLICKED, DW_SIGNAL_FUNC(exit_callback), DW_POINTER(mainwindow)); |
1784 /* | 1784 /* |
1785 * Add the "File" menu to the menubar... | 1785 * Add the "File" menu to the menubar... |
1786 */ | 1786 */ |
1787 dw_menu_append_item(mainmenubar, "~File", 1010, 0, TRUE, FALSE, menu); | 1787 dw_menu_append_item(mainmenubar, "~File", 1010, 0, TRUE, FALSE, menu); |