/programs/cmm/Calypte/Calypte.c |
---|
138,7 → 138,7 |
{ |
case evMouse: |
mouse.get(); |
if (tview.MouseScrollNoSelection(mouse.vert)) DrawText(); |
if (tview.MouseScroll(mouse.vert)) DrawText(); |
menu_bar_mouse stdcall (#menudata1); |
if (menudata1.click) |
/programs/cmm/lib/font.h |
---|
158,6 → 158,8 |
IF(!encoding){ |
IF(s>=128)&&(s<=175)s+=64; |
ELSE IF(s>=224)&&(s<=239)s+=16; |
ELSE IF(s==241)s=184; //yo |
ELSE IF(s==240)s=168; //YO |
} |
yi = 0; |
iii = 0; |
294,6 → 296,8 |
{ |
IF(s>=128)&&(s<=175)s+=64; |
ELSE IF(s>=224)&&(s<=239)s+=16; |
ELSE IF(s==241)s=184; //yo |
ELSE IF(s==240)s=168; //YO |
} |
yi = 0; |
iii = 0; |
/programs/cmm/lib/list_box.h |
---|
28,7 → 28,6 |
void SetSizes(int xx, yy, ww, hh, line_hh); |
void SetFont(dword font_ww, font_hh, font_tt); |
int MouseScroll(dword scroll_state); |
int MouseScrollNoSelection(dword scroll_state); |
void debug_values(); |
}; |
88,23 → 87,6 |
return 0; |
} |
int llist::MouseScrollNoSelection(dword scroll_state) |
{ |
if (count<=visible) return 0; |
if (scroll_state == 65535) |
{ |
if (current == 0) return 0; |
if (current > 3) current -= 2; else current=0; |
return 1; |
} |
if (scroll_state == 1) |
{ |
if (visible + current == count) return 0; |
if (visible+current+3 > count) current = count - visible; else current+=2; |
return 1; |
} |
return 0; |
} |
int llist::MouseOver(int xx, yy) |
{ |
/programs/cmm/lib/patterns/simple_open_dialog.h |
---|
0,0 → 1,15 |
struct od_filter |
{ |
dword size; |
byte end; |
}; |
proc_info pr_inf; |
char communication_area_name[] = "FFFFFFFF_open_dialog"; |
byte plugin_path[4096]; |
char open_dialog_path[] = "/rd/1/File managers/opendial"; //opendial |
byte openfile_path[2048]; |
byte filename_area[4096]; |
opendialog o_dialog = {0, #pr_inf, #communication_area_name, 0, #plugin_path, #default_dir, #open_dialog_path, |
#draw_window, 0, #openfile_path, #filename_area, #filter2, 420, 200, 320, 120}; |
/programs/cmm/ttf_viewer/simple_open_dialog.h |
---|
File deleted |
/programs/cmm/ttf_viewer/ttf_viewer.c |
---|
9,8 → 9,8 |
#include "..\lib\gui.h" |
#include "..\lib\obj\truetype.h" |
#include "..\lib\obj\proc_lib.h" |
#include "..\lib\patterns\simple_open_dialog.h" |
#include "simple_open_dialog.h" |
char default_dir[] = "/rd/1"; |
od_filter filter2 = {"TTF",0}; |