13,7 → 13,7 |
#define FALSE 0; |
#define MAX_HASH_LEN 65 // ªá¨¬ «ì ï ¤«¨ áâப¨ |
#define WINDOW_W 665 |
#define VERSION "%s - thashview 2.2" |
#define VERSION "%s - thashview 2.3" |
|
typedef unsigned char bool; |
struct kolibri_system_colors sys_color_table; |
169,7 → 169,7 |
pos_t win_pos = get_mouse_pos(0); //®«ãç ¥¬ ¯®§¨æ¨î ªãàá®à ¬ëè¨. |
sprintf(title,VERSION, filename); // áâ ¢«¨¢ ¥¬ § £®«®¢®ª ®ª |
begin_draw(); // ç¨ ¥¬ à¨á®¢ ¨¥ ¨â¥à䥩á ) |
sys_create_window(win_pos.x, win_pos.y, WINDOW_W, 150, title, GREY, 0x14); // ®§¤ ñ¬ ®ª®. |
sys_create_window(win_pos.x, win_pos.y, WINDOW_W, 150, title, sys_color_table.work_area, 0x14); // ®§¤ ñ¬ ®ª®. |
|
draw_bar(10, 121, 525,20, WHITE); // ®§¤ ñ¬ ¯àאַ㣮«ì¨ª ¤«ï ¯®«ï ¢¢®¤ |
draw_text_sys(edit_box_buff,15, 125, 0, 0x90000000| edit_box_text_color); // 뢮¤¨¬ ⥪áâ ¨§ ¡ãää¥à ¢¢®¤ |
206,7 → 206,9 |
|
void paste_to_edit_buffer() // áâ ¢¨âì ¨§ ¡ãää¥à ®¡¬¥ |
{ |
char *temp_buff; |
char *temp_buff=NULL; |
if(kol_clip_num()>0) |
{ |
temp_buff=kol_clip_get(kol_clip_num()-1); |
memset(edit_box_buff,0,MAX_HASH_LEN); |
if(((int)*(temp_buff)>0) && ((int)*(temp_buff+4)==0) && ((int)*(temp_buff+8)==1)) |
215,9 → 217,11 |
str_pos=strlen(edit_box_buff); |
notify_show("'Pasted from clipboard!' -I"); |
edit_box_text_color=BLACK; |
} |
user_free(temp_buff); |
|
} |
} |
} |
|
|
void copy_to_clipboard(char *text) // ®¯¨à«¢ âì ¢ ¡ãää¥à ®¡¬¥ |
296,8 → 300,7 |
|
void edit_box(oskey_t key) //ãªæ¨ï ॠ«¨§ãîé ï áâப㠢¢®¤ |
{ |
edit_box_text_color=BLACK; |
|
edit_box_text_color=sys_color_table.frame_area; |
if(key.code==CTRL_V) //
᫨ ¦ â® Ctrl+V â® ¢áâ ¢¨âì ¨§ ¡ãä¥à ®¡¬¥ |
{ |
paste_to_edit_buffer(); |