forked from KolibriOS/kolibrios
e783cf020c
git-svn-id: svn://kolibrios.org@2739 a494cfbc-eb01-0410-851d-a64ba20cac60
96 lines
3.2 KiB
Plaintext
96 lines
3.2 KiB
Plaintext
//lev
|
||
//:dword boxlib = #abox_lib;
|
||
:char abox_lib[]="/sys/lib/box_lib.obj";
|
||
|
||
:char aboxlib_init[] = "lib_init";
|
||
:char aScrollbar_v_draw = "scrollbar_v_draw";
|
||
:char aScrollbar_v_mouse = "scrollbar_v_mouse";
|
||
:char aScrollbar_h_draw = "scrollbar_h_draw";
|
||
:char aScrollbar_h_mouse = "scrollbar_h_mouse";
|
||
:char aVersion_scrollbar = "version_scrollbar";
|
||
|
||
dword boxlib_init = #aboxlib_init;
|
||
dword scrollbar_v_draw = #aScrollbar_v_draw;
|
||
dword scrollbar_v_mouse = #aScrollbar_v_mouse;
|
||
dword scrollbar_h_draw = #aScrollbar_h_draw;
|
||
dword scrollbar_h_mouse = #aScrollbar_h_mouse;
|
||
:dword version_scrollbar = #aVersion_scrollbar;
|
||
|
||
dword sc_am__ = 0x0;
|
||
dword sc_bm__ = 0x0;
|
||
|
||
struct scroll_bar
|
||
{
|
||
//scroll_bar:
|
||
word size_x,// equ [edi]
|
||
start_x,// equ [edi+2]
|
||
size_y,// equ [edi+4]
|
||
start_y;// equ [edi+6]
|
||
dword btn_height, // equ [edi+8]
|
||
type,// equ [edi+12]
|
||
max_area,// equ [edi+16]
|
||
cur_area,// equ [edi+20]
|
||
position,// equ [edi+24]
|
||
bckg_col,// equ [edi+28]
|
||
frnt_col,// equ [edi+32]
|
||
line_col,// equ [edi+36]
|
||
redraw;// equ [edi+40]
|
||
word delta,// equ [edi+44]
|
||
delta2,// equ [edi+46]
|
||
r_size_x,// equ [edi+48]
|
||
r_start_x,// equ [edi+50]
|
||
r_size_y,// equ [edi+52]
|
||
r_start_y;// equ [edi+54]
|
||
dword m_pos,// equ [edi+56]
|
||
m_pos_2,// equ [edi+60]
|
||
m_keys,// equ [edi+64]
|
||
run_size,// equ [edi+68]
|
||
position2,// equ [edi+72]
|
||
work_size,// equ [edi+76]
|
||
all_redraw,// equ [edi+80]
|
||
ar_offset;// equ [edi+84]
|
||
};
|
||
|
||
/*scroll_bar scroll1 = {
|
||
18,//word size_x,
|
||
200, //start_x,
|
||
398, //size_y,
|
||
44,//start_y;
|
||
18,//dword btn_height,
|
||
0,//type,
|
||
115,//max_area, (100+cur_area)
|
||
15,//cur_area,
|
||
0,//position,
|
||
0xeeeeee,//bckg_col,
|
||
0xD2CED0,//frnt_col,
|
||
0x555555,//line_col,
|
||
0,//redraw;
|
||
0,//word delta,
|
||
0,//delta2,
|
||
0,//r_size_x,
|
||
0,//r_start_x,
|
||
0,//r_size_y,
|
||
0,//r_start_y;
|
||
0,//dword m_pos,
|
||
0,//m_pos_2,
|
||
0,//m_keys,
|
||
0,//run_size,
|
||
0,//position2,
|
||
0,//work_size,
|
||
1,//all_redraw,
|
||
1//ar_offset;
|
||
};*/
|
||
|
||
//btn_height - ¢ëá®â ¡®ª®¢ëå ª®¯®ª («¥¢ ï ¨ ¯à ¢ ï ¤«ï £®à¨§. ¨ ¢¥àåïï ¨ ¨¦ïï ¤«ï ¢¥àâ.)
|
||
//type - type - 0-1-2, ®áâ «ìë¥ ¢ë£«ï¤ïâ ª ª 0.
|
||
//max_area - ®¡« áâì ¬ ªá¨¬ «ì ï, ªâã «ì® ª®£¤ ¥ ¢« §¨â ¢ ®â®¡à ¦ ¥¬ãî ®¡« áâì, â.¥. á«ãç © ªâ¨¢®á⨠ª®¬¯®¥â (¢¥áì ¬ ªá¨¬ «ìë© à §¬¥à ¤®ªã¬¥â )
|
||
//cur_area - à §¬¥à ¡¥£ãª //®¡« áâì ®â®¡à ¦ ¥¬ ï (ª ª ï ç áâì ¤®ªã¬¥â ¢« §¨â ¢ íªà )
|
||
//position - ¯®§¨æ¨ï ¡¥£ãª ¨§¬¥ï¥¬ ï ®â 0 ¤® § 票ï (max_area-cur_area)
|
||
//bckg_col - 梥⠢ãâ२©, ¯à¨¬¥ï¥âáï ¤«ï ®¡« á⥩ ¬¥¦¤ã ¡¥£ãª®¬ ¨ ª®ª ¬¨
|
||
//frnt_col - 梥â àã¦ë©, ¯à¨¬¥ï¥âáï ¤«ï ®¡« á⥩ ®â«¨çëå ®â ¯à¨¬¥ï¥¬ëå ¢ bckg_col
|
||
//line_col - 梥⠫¨¨© ¨ áâ५®ª ª®¯ª å
|
||
//redraw - ¨¤¨ª â®à ¥®¡å®¤¨¬®á⨠¯¥à¥à¨á®¢ª¨ ã¯à ¢«ï¥¬®© ®¡« á⨠ãç¨âë¢ ï ¨§¬¥¥¨¥ position ¨ cur_area
|
||
//delta2 - ¨¤¨ª â®à § å¢ â 䮪ãá áªà®««¡ ஬ (㤥ঠ¨¥ ¡¥£ãª )
|
||
//all_redraw - ä« £ ãáâ ¢«¨¢ ¥¬ë© ¢ 1 ¤«ï ¯¥à¥à¨á®¢ª¨ ¢á¥£® ª®¬¯®¥â , ¥á«¨ ¯®áâ ¢¨âì 0, â® ¯¥à¥à¨á®¢ª ¯à®¨á室¨â ⮫쪮 ¤«ï ®¡« á⨠¡¥£ãª . ‚¢¥¤¥® ¤«ï ãáª®à¥¨ï ®âà¨á®¢ª¨, ¯®áª®«ìªã ¥ ¢® ¢á¥å á«ãç ïå âॡã¥âáï ¯à¨ã¤¨â¥ì® ®âà¨á®¢ë¢ âì ¢á¥ ç á⨠ª®¬¯®¥â . Š®£¤ ¢ë§ë¢ ¥âáï ¯® ᮡëâ¨î ¬ëè¨ ¢á¥£¤ ®âà¨á®¢ë¢ ¥âáï á ¬¨¬ ª®¬¯®¥â®¬ á® § 票¥¬ 0.
|
||
//ar_offset - ¢¥«¨ç¨ á¬¥é¥¨ï ¯à¨ ®¤®ªà ⮬ ¦ ⨨ ¡®ª®¢®© ª®¯ª¨.
|