Subversion Repositories Kolibri OS

Rev

Rev 6479 | Rev 6489 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6479 Rev 6482
Line 62... Line 62...
62
    gui_add_frame(main_window, fr2);
62
    gui_add_frame(main_window, fr2);
Line 63... Line 63...
63
 
63
 
64
    int option_index1 = 0;  // index of selected option
64
    int option_index1 = 0;  // index of selected option
Line -... Line 65...
-
 
65
    int option_index2 = 0;
-
 
66
 
-
 
67
    static char *menu1t = "Menu1";
-
 
68
    static char *menu11t = "Set RED";
-
 
69
    static char *menu12t = "Set GREEN";
-
 
70
    static char *menu13t = "Set BLUE";
-
 
71
    static char *menu14t = "";
-
 
72
    menubar* menu1 = kolibri_new_menubar_def(X_Y(20, 40), X_Y(25, 15), 80, 100, menu1t, menu11t);
-
 
73
    gui_add_menubar(main_window, menu1);
-
 
74
 
-
 
75
    static char *menu2t = "Menu2";
-
 
76
    static char *menu21t = "Set Option 1";
-
 
77
    static char *menu22t = "Set Option 2";
-
 
78
    static char *menu23t = "Set Option 3";
-
 
79
    static char *menu24t = "";
-
 
80
    menubar* menu2 = kolibri_new_menubar_def(X_Y(60, 40), X_Y(25, 15), 80, 100, menu2t, menu21t);
-
 
81
    gui_add_menubar(main_window, menu2);
-
 
82
 
-
 
83
 
65
    int option_index2 = 0;
84
 
66
 
85
 
67
    do  /* Start of main activity loop */
86
    do  /* Start of main activity loop */
68
    {
87
    {
69
        if(option_index1 != option1sel - opts1)
88
        if(option_index1 != option1sel - opts1)