7,7 → 7,7 |
proc_info Form; |
|
enum { |
STRONG_BTN=10, ITALIC_BTN, SMOOTH_BTN, |
STRONG_BTN=10, SMOOTH_BTN, |
PHRASE_TAB=20, CHARS_TAB |
}; |
|
27,7 → 27,6 |
btn = GetButtonID(); |
if (btn==1) ExitProcess(); |
if (btn==STRONG_BTN) label.bold ^=1; |
if (btn==ITALIC_BTN) label.italic ^=1; |
if (btn==SMOOTH_BTN) label.smooth ^=1; |
if (btn==PHRASE_TAB) || (btn==CHARS_TAB) tabs.click(btn); |
goto _DRAW_WINDOW_CONTENT; |
39,8 → 38,7 |
_DRAW_WINDOW_CONTENT: |
DrawBar(0, 0, Form.cwidth, PANELH-1, system.color.work); |
CheckBox(10, 8, STRONG_BTN, "Bold", label.bold); |
CheckBox(83, 8, ITALIC_BTN, "Italic", label.italic); |
CheckBox(170,8, SMOOTH_BTN, "Smooth", label.smooth); |
CheckBox(83,8, SMOOTH_BTN, "Smooth", label.smooth); |
tabs.draw(Form.cwidth-150, PANELH, PHRASE_TAB, "Phrase"); |
tabs.draw(Form.cwidth-70, PANELH, CHARS_TAB, "Chars"); |
DrawBar(0, PANELH-1,Form.cwidth,1,system.color.work_graph); |
63,9 → 61,9 |
for (i=10, y=5; i<22; i++, y+=label.height;) //not flexible, need to calculate font count and max line length |
{ |
sprintf(#line," §¬¥à èà¨äâ /size font %d ¯¨ªá¥«¥©.",i); |
label.write_buf(10,y,Form.cwidth,Form.cheight-PANELH, 0xFFFFFF, 0, i, #line); |
label.WriteIntoBuffer(10,y,Form.cwidth,Form.cheight-PANELH, 0xFFFFFF, 0, i, #line); |
} |
if (label.smooth) label.apply_smooth(); |
if (label.smooth) label.ApplySmooth(); |
label.show_buf(0, PANELH); |
} |
|
78,7 → 76,7 |
for (i=0; i<255; i++) //not flexible, need to calculate font count and max line length |
{ |
line[0]=i; |
label.write_buf(x,y,Form.cwidth,Form.cheight-PANELH, 0xFFFFFF, 0, 16, #line); |
label.WriteIntoBuffer(x,y,Form.cwidth,Form.cheight-PANELH, 0xFFFFFF, 0, 16, #line); |
x+= label.height+2; |
if (x>=Form.cwidth-30) { |
x=20; |
85,6 → 83,6 |
y+=label.height+2; |
} |
} |
if (label.smooth) label.apply_smooth(); |
if (label.smooth) label.ApplySmooth(); |
label.show_buf(0, PANELH); |
} |