mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-16 11:52:34 +03:00
e79fad8794
2) added documentation for the 'scrollbar' 3) small improvements 't_edit' git-svn-id: svn://kolibrios.org@1390 a494cfbc-eb01-0410-851d-a64ba20cac60
93 lines
4.0 KiB
HTML
93 lines
4.0 KiB
HTML
<html>
|
|
<head>
|
|
<title>ýëåìåíò Scroll Bar</title>
|
|
<meta http-equiv="content-type" content="text/html; charset=WINDOWS-1251">
|
|
<link href="../style.css" type=text/css rel=stylesheet>
|
|
</head>
|
|
<body>
|
|
<p><a href="../box_lib.htm">Íà ãëàâíóþ ↑</a></p>
|
|
<h1>Îãëàâëåíèå</h1>
|
|
<p><a href="#vveden">Ââåäåíèå</a></p>
|
|
<p><a href="#funct">Ôóíêöèè</a></p>
|
|
<ul>
|
|
<li><a href="#fun_v_draw">scrollbar_v_draw</a></li>
|
|
<li><a href="#fun_v_mouse">scrollbar_v_mouse</a></li>
|
|
<li><a href="#fun_h_draw">scrollbar_h_draw</a></li>
|
|
<li><a href="#fun_h_mouse">scrollbar_h_mouse</a></li>
|
|
<li><a href="#version">version_ch</a></li>
|
|
</ul>
|
|
<p><a href="#struc_scrollbar">Ñòðóêòóðà scrollbar</a></p>
|
|
|
|
<h1><a name="vveden">Ââåäåíèå</a></h1>
|
|
<p>Ñêðîëëáàð, èñïîëüçóåòñÿ ïðè âûâîäå èíôîðìàöèè, íå ïîìåùàþùåéñÿ â îêíî. Ìîæåò áûòü âåðòèêàëüíûì è ãîðèçîíòàëüíûì.</p>
|
|
|
|
<h1><a name="funct">Ôóíêöèè</a></h1>
|
|
|
|
<h2><a name="fun_v_draw">scrollbar_v_draw</a></h2>
|
|
<p>Ðèñîâàíèå âåðòèêàëüíîãî ñêðîëëèíãà.</p>
|
|
|
|
<h2><a name="fun_v_mouse">scrollbar_v_mouse</a></h2>
|
|
<p>Ýòà ôóíêöèÿ äîëæíà âûçûâàòñÿ äëÿ âåðòèêàëüíîãî ñêðîëëèíãà ïðè äâèæåíèè ìûøåé.</p>
|
|
|
|
<h2><a name="fun_h_draw">scrollbar_h_draw</a></h2>
|
|
<p>Ðèñîâàíèå ãîðèçîíòàëüíîãî ñêðîëëèíãà.</p>
|
|
|
|
<h2><a name="fun_h_mouse">scrollbar_h_mouse</a></h2>
|
|
<p>Ýòà ôóíêöèÿ äîëæíà âûçûâàòñÿ äëÿ ãîðèçîíòàëüíîãî ñêðîëëèíãà ïðè äâèæåíèè ìûøåé.</p>
|
|
|
|
<h2><a name="version">version_ch</a></h2>
|
|
<p>Âåðñèÿ ýëåìåíòà</p>
|
|
|
|
<h1><a name="struc_scrollbar">Ñòðóêòóðà scrollbar</a></h1>
|
|
<p>Ìàêðîñà äëÿ ñîçäàíèÿ ñòðóêòóðû äëÿ ñêðîëëáàðà íåò. Ïîòîìó äàííûå äëÿ íåå çàäàþòñÿ âðó÷íóþ.
|
|
Åñòü ìàêðîñ use_scroll_bar îí äàåò âîçìîæíîñòü ïîíÿòü êàêèå äàííûå íóæíû äëÿ ñêðîëëèíãà.</p>
|
|
<pre>macro use_scroll_bar
|
|
{
|
|
scroll_bar:
|
|
sb_size_x equ [edi]
|
|
sb_start_x equ [edi+ 2]
|
|
sb_size_y equ [edi+ 4]
|
|
sb_start_y equ [edi+ 6]
|
|
sb_btn_high equ [edi+ 8]
|
|
sb_type equ [edi+12]
|
|
sb_max_area equ [edi+16]
|
|
sb_cur_area equ [edi+20]
|
|
sb_position equ [edi+24]
|
|
sb_bckg_col equ [edi+28]
|
|
sb_frnt_col equ [edi+32]
|
|
sb_line_col equ [edi+36]
|
|
sb_redraw equ [edi+40]
|
|
sb_delta equ [edi+44]
|
|
sb_delta2 equ [edi+46]
|
|
sb_r_size_x equ [edi+48]
|
|
sb_r_start_x equ [edi+50]
|
|
sb_r_size_y equ [edi+52]
|
|
sb_r_start_y equ [edi+54]
|
|
sb_m_pos equ [edi+56]
|
|
sb_m_pos_2 equ [edi+60]
|
|
sb_m_keys equ [edi+64]
|
|
sb_run_size equ [edi+68]
|
|
sb_position2 equ [edi+72]
|
|
sb_work_size equ [edi+76]
|
|
sb_all_redraw equ [edi+80]
|
|
sb_ar_offset equ [edi+84]
|
|
}</pre>
|
|
|
|
<p><b>sb_btn_high</b> - âûñîòà áîêîâûõ êíîïîê (ëåâàÿ è ïðàâàÿ äëÿ ãîðèç. è âåðõíÿÿ è íèæíÿÿ äëÿ âåðò.)</p>
|
|
<p><b>sb_type</b> - çàðåçåðâèðîâàíî äëÿ áóäóùèõ òèïîâ, åñëè ñêðîëëáàð áóäåò äîðàáàòûâàòüñÿ.</p>
|
|
<p><b>sb_max_area</b> - îáëàñòü ìàêñèìàëüíàÿ, àêòóàëüíî êîãäà íå âëàçèò â
|
|
îòîáðàæàåìóþ îáëàñòü, ò.å. ñëó÷àé àêòèâíîñòè êîìïîíåíòà (âåñü ìàêñèìàëüíûé ðàçìåð äîêóìåíòà)</p>
|
|
<p><b>sb_cur_area</b> - îáëàñòü îòîáðàæàåìàÿ (êàêàÿ ÷àñòü äîêóìåíòà âëàçèò â ýêðàí)</p>
|
|
<p><b>sb_position</b> - ïîçèöèÿ áåãóíêà èçìåíÿåìàÿ îò 0 äî çíà÷åíèÿ (sb_max_area-sb_cur_area)</p>
|
|
<p><b>sb_bckg_col</b> - öâåò âíóòðåííèé, ïðèìåíÿåòñÿ äëÿ îáëàñòåé ìåæäó áåãóíêîì è êíîêàìè</p>
|
|
<p><b>sb_frnt_col</b> - öâåò íàðóæíûé, ïðèìåíÿåòñÿ äëÿ îáëàñòåé îòëè÷íûõ îò ïðèìåíÿåìûõ â sb_bckg_col</p>
|
|
<p><b>sb_line_col</b> - öâåò ëèíèé è ñòðåëîê íà êíîïêàõ</p>
|
|
<p><b>sb_redraw</b> - èíäèêàòîð íåîáõîäèìîñòè ïåðåðèñîâêè óïðàâëÿåìîé îáëàñòè ó÷èòûâàÿ èçìåíåíèå sb_position è sb_cur_area</p>
|
|
<p><b>sb_delta2</b> - èíäèêàòîð çàõâàòà ôîêóñà ñêðîëëáàðîì (óäåðæàíèå áåãóíêà)</p>
|
|
<p><b>sb_all_redraw</b> - ôëàã óñòàíàâëèâàåìûé â 1 äëÿ ïåðåðèñîâêè âñåãî êîìïîíåíòà, åñëè ïîñòàâèòü 0, òî ïåðåðèñîâêà ïðîèñõîäèò òîëüêî äëÿ îáëàñòè áåãóíêà. Ââåäåíî äëÿ óñêîðåíèÿ îòðèñîâêè, ïîñêîëüêó íå âî âñåõ ñëó÷àÿõ òðåáóåòñÿ ïðèíóäèòåüíî îòðèñîâûâàòü âñå ÷àñòè êîìïîíåíòà. Êîãäà âûçûâàåòñÿ ïî ñîáûòèþ ìûøè âñåãäà îòðèñîâûâàåòñÿ ñàìèì êîìïîíåíòîì ñî çíà÷åíèåì 0.</p>
|
|
<p><b>sb_ar_offset</b> - âåëè÷èíà ñìåùåíèÿ ïðè îäíîêðàòíîì íàæàòèè áîêîâîé êíîïêè.</p>
|
|
|
|
<hr>
|
|
<p>Äîêóìåíòàöèÿ îáíîâëÿëàñü ïîñëåäíèé ðàç 05.02.10.</p>
|
|
</body>
|
|
</html> |