Subversion Repositories Kolibri OS

Rev

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

Rev 6615 Rev 6690
Line 78... Line 78...
78
    char *sampletext = "*123*=========ADDED SAMPLE TEXT=========*789*\n";
78
    char *sampletext = "*123*=========ADDED SAMPLE TEXT=========*789*\n";
79
    (*ted_text_add)(ed, sampletext, strlen(sampletext), 0);
79
    (*ted_text_add)(ed, sampletext, strlen(sampletext), 0);
80
 
80
 
Line 81... Line 81...
81
    // treelist as tree
81
    // treelist as tree
82
    treelist *tl = kolibri_new_treelist(X_Y(0, 200), X_Y(200, 200), 16, X_Y(16, 16), 100, 50, 0, 0, TL_KEY_NO_EDIT | TL_DRAW_PAR_LINE, &ed_lock, 0x8080ff, 0x0000ff, 0xffffff);
82
    treelist *tl = kolibri_new_treelist(X_Y(0, 200), X_Y(200, 200), 16, X_Y(16, 16), 100, 50, 0, 0, /*TL_KEY_NO_EDIT |*/ TL_DRAW_PAR_LINE, &ed_lock, 0x8080ff, 0x0000ff, 0xffffff);
83
    (*tl_data_init)(tl);
83
    (*tl_data_init)(tl);
Line 84... Line 84...
84
 
84
 
85
    // ÷èòàåì ôàéë ñ êóðñîðàìè è ëèíèÿìè
85
    // ÷èòàåì ôàéë ñ êóðñîðàìè è ëèíèÿìè
86
    strcpy(fname, run_path);
86
    strcpy(fname, run_path);
Line 111... Line 111...
111
 
111
 
Line 112... Line 112...
112
    (*tl_cur_beg)(tl); //;ñòàâèì êóðñîð íà íà÷àëî ñïèñêà
112
    (*tl_cur_beg)(tl); //;ñòàâèì êóðñîð íà íà÷àëî ñïèñêà
113
    gui_add_treelist(main_window, tl);
113
    gui_add_treelist(main_window, tl);
Line 114... Line 114...
114
 
114
 
115
    // treelist as listbox
115
    // treelist as listbox, no caption, no icons
116
    treelist *tl2 = kolibri_new_treelist(X_Y(220, 200), X_Y(200, 200), 16, X_Y(16, 16), 100, 50, 0, 0, TL_LISTBOX_MODE, &ed_lock, 0x8080ff, 0x0000ff, 0xffffff);
116
    treelist *tl2 = kolibri_new_treelist(X_Y(220, 200), X_Y(200, 200), 0, X_Y(16, 16), 100, 50, 0, 0, TL_LISTBOX_MODE, &ed_lock, 0x8080ff, 0x0000ff, 0xffffff);
-
 
117
    (*tl_data_init)(tl2);
Line 117... Line 118...
117
    (*tl_data_init)(tl2);
118
    // tl->col_zag |= 0x10000000; // 0x10 in txt color must give font 9x16, but this not work, only 6x8 font (
118
 
119
 
Line 119... Line 120...
119
    tl2->data_img_sys = tl->data_img_sys;
120
    tl2->data_img_sys = tl->data_img_sys;
120
    tl2->data_img = tl->data_img;
121
    //tl2->data_img = tl->data_img; - no icons will be drawed
Line 121... Line 122...
121
 
122