Rev 7275 | Rev 7806 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7275 | Rev 7506 | ||
---|---|---|---|
Line 5... | Line 5... | ||
5 | // CODE // |
5 | // CODE // |
6 | // // |
6 | // // |
7 | //===================================================// |
7 | //===================================================// |
8 | 8 | ||
Line 9... | Line 9... | ||
9 | char text_columns[4]; |
9 | char text_columns[5]; |
10 | char text_rows[4]; |
10 | char text_rows[5]; |
Line 11... | Line 11... | ||
11 | 11 | ||
12 | edit_box edit_columns = {60,NULL,NULL,0xffffff,0x94AECE,0xFFFfff,0xffffff, |
12 | edit_box edit_columns = {60,NULL,NULL,0xffffff,0x94AECE,0xffc90E,0xffffff, |
13 | 0x10000000,sizeof(text_columns)-1,#text_columns,0, 1000000000000010b}; |
13 | 0x10000000,sizeof(text_columns)-2,#text_columns,0, ed_figure_only+ed_focus}; |
14 | edit_box edit_rows = {60,NULL,NULL,0xffffff,0x94AECE,0xFFFfff,0xffffff, |
14 | edit_box edit_rows = {60,NULL,NULL,0xffffff,0x94AECE,0xffc90E,0xffffff, |
Line 15... | Line 15... | ||
15 | 0x10000000,sizeof(text_rows)-1,#text_rows,0, 1000000000000000b}; |
15 | 0x10000000,sizeof(text_rows)-2,#text_rows,0, ed_figure_only}; |
Line 16... | Line 16... | ||
16 | 16 | ||
17 | #define BTN_APPLY 10 |
17 | #define BTN_APPLY 10 |
18 | 18 | ||
Line 19... | Line 19... | ||
19 | void CanvasReSize_Thread() |
19 | void CanvasReSize_Thread() |
20 | { |
20 | { |
21 | int id, butw; |
21 | int id, butw; |
22 | 22 | ||
Line 23... | Line 23... | ||
23 | sprintf(#text_columns, "%i", image.columns); |
23 | sprintf(#text_columns, "%i", image.columns); |
24 | sprintf(#text_rows, "%i", image.rows); |
24 | sprintf(#text_rows, "%i", image.rows); |
25 | edit_columns.size = edit_columns.pos = edit_columns.shift = edit_columns.shift_old = strlen(#text_columns); |
25 | EditBox_UpdateText(#edit_columns, ed_figure_only+ed_focus); |
26 | edit_rows.size = edit_rows.pos = edit_rows.shift = edit_rows.shift_old = strlen(#text_rows); |
26 | EditBox_UpdateText(#edit_rows, ed_figure_only); |
Line 92... | Line 92... | ||
92 | } |
92 | } |
93 | 93 | ||
Line 94... | Line 94... | ||
94 | void EventTabClick() |
94 | void EventTabClick() |
95 | { |
95 | { |
- | 96 | if ( edit_columns.flags & ed_focus ) { |
|
- | 97 | EditBox_UpdateText(#edit_columns, ed_figure_only); |
|
- | 98 | EditBox_UpdateText(#edit_rows, ed_focus+ed_figure_only); |
|
- | 99 | } else { |
|
96 | if (edit_columns.flags & 0b10) { edit_columns.flags -= 0b10; edit_rows.flags += 0b10; } |
100 | EditBox_UpdateText(#edit_columns, ed_focus+ed_figure_only); |
97 | else { edit_columns.flags += 0b10; edit_rows.flags -= 0b10; } |
101 | EditBox_UpdateText(#edit_rows, ed_figure_only); |
- | 102 | } |
|
98 | DrawEditBoxes(); |
103 | DrawEditBoxes(); |
99 | }><> |
104 | }><> |
100 | 105 |