/programs/cmm/textreader/gui.h |
---|
1,7 → 1,7 |
void DrawToolbarButton(char image_id, int x) |
{ |
DefineButton(x, 5, TOOLBAR_ICON_WIDTH-1, TOOLBAR_ICON_HEIGHT-1, 10+image_id + BT_HIDE, 0); |
img_draw stdcall(skin.image, x, 5, TOOLBAR_ICON_WIDTH, TOOLBAR_ICON_HEIGHT, 0, image_id*TOOLBAR_ICON_HEIGHT); |
DefineButton(x+1, 7, TOOLBAR_ICON_WIDTH-2, TOOLBAR_ICON_HEIGHT-2, 10+image_id + BT_HIDE, 0); |
img_draw stdcall(skin.image, x, 6, TOOLBAR_ICON_WIDTH, TOOLBAR_ICON_HEIGHT, 0, image_id*TOOLBAR_ICON_HEIGHT); |
} |
/programs/cmm/textreader/prepare_page.h |
---|
44,7 → 44,7 |
} |
} |
} |
if (mode==COUNT_BUF_HEIGHT) list.count++; |
if (mode==COUNT_BUF_HEIGHT) list.count+=2; |
if (mode==DRAW_BUF) label.write_buf(8,stroka_y,list.w,label.size.height, 0xFFFFFF, 0, label.size.pt, line_start); |
} |
61,7 → 61,7 |
Parcer(COUNT_BUF_HEIGHT); |
//draw text in buffer |
list.SetSizes(0, TOOLBAR_H, list.w, Form.cheight-TOOLBAR_H, label.size.pt+1); |
list.SetSizes(0, TOOLBAR_H, list.w, Form.cheight-TOOLBAR_H, label.size.pt+3); |
if (list.count < list.visible) list.count = list.visible; |
label.size.height = list.count+1*list.item_h; |
label.raw_size = 0; |
/programs/cmm/textreader/textreader.c |
---|
19,7 → 19,7 |
#define DEFAULT_EDITOR "/sys/tinypad" |
#define INTRO_TEXT "This is a plain Text Reader.\nTry to open some text file." |
#define VERSION "Text Reader v1.1" |
#define VERSION "Text Reader v1.2" |
#define ABOUT "Idea: Leency, punk_joker |
Code: Leency, Veliant, KolibriOS Team |
96,6 → 96,7 |
encoding = menu.list.cur_y - 10; |
OpenFile(#param); |
PreparePage(); |
menu.list.cur_y = NULL; |
}; |
draw_window(); |
} |
/programs/cmm/textreader/toolbar.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |