Rev 6457 | Rev 6479 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6457 | Rev 6466 | ||
---|---|---|---|
Line 11... | Line 11... | ||
11 | /* Set gui_event to REDRAW so that window is drawn in first iteration */ |
11 | /* Set gui_event to REDRAW so that window is drawn in first iteration */ |
12 | unsigned int gui_event = KOLIBRI_EVENT_REDRAW; |
12 | unsigned int gui_event = KOLIBRI_EVENT_REDRAW; |
13 | oskey_t key; |
13 | oskey_t key; |
Line 14... | Line 14... | ||
14 | 14 | ||
15 | kolibri_window *main_window = kolibri_new_window(50, 50, 400, 100, "BoardMsg: OpenDialog 0.12"); |
15 | kolibri_window *main_window = kolibri_new_window(50, 50, 400, 100, "BoardMsg: OpenDialog 0.12"); |
16 | check_box *checkbox = kolibri_new_check_box(20, 40, 12, 12, "Append BOARDMSG to entered message."); |
16 | check_box *checkbox = kolibri_new_check_box(20, 45, 12, 12, "Append BOARDMSG to entered message."); |
17 | edit_box *textbox = kolibri_new_edit_box(20, 55, 40); |
17 | edit_box *textbox = kolibri_new_edit_box(20, 60, 40); |
- | 18 | kolibri_button *button = kolibri_new_button(310, 60, 24, 14, 0x21, kolibri_color_table.color_work_button); |
|
Line 18... | Line 19... | ||
18 | kolibri_button *button = kolibri_new_button(310, 55, 24, 14, 0x21, kolibri_color_table.color_work_button); |
19 | frame *fr = kolibri_new_frame(12, 35, 350, 50, 0x00FCFCFC, 0x00DCDCDC, 1, "Frame Title", 0, kolibri_color_table.color_work_text, kolibri_color_table.color_work_area); |
19 | 20 | ||
20 | kolibri_window_add_element(main_window, KOLIBRI_EDIT_BOX, textbox); |
21 | kolibri_window_add_element(main_window, KOLIBRI_EDIT_BOX, textbox); |
- | 22 | kolibri_window_add_element(main_window, KOLIBRI_CHECK_BOX, checkbox); |
|
Line 21... | Line 23... | ||
21 | kolibri_window_add_element(main_window, KOLIBRI_CHECK_BOX, checkbox); |
23 | kolibri_window_add_element(main_window, KOLIBRI_BUTTON, button); |
Line 22... | Line 24... | ||
22 | kolibri_window_add_element(main_window, KOLIBRI_BUTTON, button); |
24 | kolibri_window_add_element(main_window, KOLIBRI_FRAME, fr); |
23 | 25 | ||
Line 64... | Line 66... | ||
64 | else if(gui_event == KOLIBRI_EVENT_MOUSE) |
66 | else if(gui_event == KOLIBRI_EVENT_MOUSE) |
65 | { |
67 | { |
66 | kolibri_handle_event_mouse(main_window); |
68 | kolibri_handle_event_mouse(main_window); |
67 | } |
69 | } |
Line 68... | Line 70... | ||
68 | 70 | ||
Line 69... | Line 71... | ||
69 | } while(gui_event = get_os_event()); /* End of main activity loop */ |
71 | } while((gui_event = get_os_event())); /* End of main activity loop */ |
Line 70... | Line 72... | ||
70 | 72 | ||
71 | /* kolibri_quit(); */ |
73 | /* kolibri_quit(); */ |