-{
- // Create Window
- ghMenubarWindow = AxWin_CreateWindow(0, 0, -1, -1, WINFLAG_NOBORDER, Menubar_HandleMessage);
+{
+ tAxWin_Element *menu, *tab;
+
+ if(argc != 1)
+ {
+ fprintf(stderr, "Usage: %s\n", argv[0]);
+ fprintf(stderr, "\tThis application takes no arguments\n");
+ return 0;
+ }
+
+ AxWin_Register("Terminal", Global_HandleMessage);
+
+ menu = AxWin_AddMenuItem(NULL, "File", 0);
+ AxWin_AddMenuItem(menu, "&New Tab\tCtrl-Shift-N", EVENT_NEW_TAB);
+ AxWin_AddMenuItem(menu, NULL, 0);
+ AxWin_AddMenuItem(menu, "&Close Tab\tCtrl-Shift-W", EVENT_CLOSE_TAB);
+ AxWin_AddMenuItem(menu, "E&xit\tAlt-F4", EVENT_EXIT);
+
+ tab = AxWin_CreateTab("root@acess: ~");
+ //geConsole = AxWin_CreateElement();