forked from KolibriOS/kolibrios
40eaf1d92f
1) fixed bug with mouse inactive window 2) small optimization TE syntax file converter: 1) uses a 'PathShow' Info3ds: 1) fixed bug with mouse inactive window 2) small update box_lib.obj: 1) documentation on the 'PathShow' git-svn-id: svn://kolibrios.org@2125 a494cfbc-eb01-0410-851d-a64ba20cac60
64 lines
2.3 KiB
HTML
64 lines
2.3 KiB
HTML
<html>
|
|
<head>
|
|
<title>ýëåìåíò PathShow</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_prepare">PathShow_prepare</a></li>
|
|
<li><a href="#fun_draw">PathShow_draw</a></li>
|
|
</ul>
|
|
<p><a href="#struc_pathshow">Ñòðóêòóðà PathShow</a></p>
|
|
|
|
<h1><a name="vveden">Ââåäåíèå</a></h1>
|
|
<p>Êîìïîíåíò <b>PathShow</b> - ïðåäíàçíà÷åí äëÿ îòîáðàæåíèÿ ïóòè ê ôàéëó èëè äèðåêòîðèè, ñ óñå÷åíèåì èìåíè ïîõîæèì íà óñå÷åíèå âûâîäèìîå FAR'îì, åñëè íå âëàçèò â îáëàñòü âûäåëåííóþ äëÿ âûâîäà.  òåêóùåì âèäå ïîääåðæèâàåò îáà ñèñòåìíûõ øðèôòà.</p>
|
|
|
|
<h1><a name="funct">Ôóíêöèè</a></h1>
|
|
|
|
<h4><a name="fun_prepare">PathShow_prepare</a></h4>
|
|
<p>Ïîäãîòàâëèâàåò ñòðîêó ïåðåä âûâîäîì íà ýêðàí. Íóæíî âûçûâàòü ýòó ôóíêöèþ êàæäûé ðàç êîãäà ìåíÿåòñÿ ïóòü ê ôàéëó.</p>
|
|
<p>Ïðèìåð èñïîëüçîâàíèÿ:</p>
|
|
<pre>; ïîäãîòîâêà PathShow
|
|
push dword PathShow_data_1
|
|
call [PathShow_prepare]</pre>
|
|
|
|
<h4><a name="fun_draw">PathShow_draw</a></h4>
|
|
<p>Ðèñóåò ýëåìåíò íà ýêðàíå.</p>
|
|
<p>Ïðèìåð èñïîëüçîâàíèÿ:</p>
|
|
<pre>; ðèñîâàíèå PathShow
|
|
push dword PathShow_data_1
|
|
call [PathShow_draw]</pre>
|
|
|
|
<h1><a name="struc_pathshow">Ñòðóêòóðà PathShow</a></h1>
|
|
|
|
<pre>PathShow_data_1:
|
|
.type dd 0 ;+0
|
|
.start_y dw 28 ;+4
|
|
.start_x dw 172 ;+6
|
|
.font_size_x dw 6 ;+8 ; 6 - for font 0, 8 - for font 1
|
|
.area_size_x dw 200 ;+10
|
|
.font_number dd 0 ;+12 ; 0 - monospace, 1 - variable
|
|
.background_flag dd 0 ;+16
|
|
.font_color dd 0x0 ;+20
|
|
.background_color dd 0x0 ;+24
|
|
.text_pointer dd openfile_pach ;+28
|
|
.work_area_pointer dd text_work_area ;+32
|
|
.temp_text_length dd 0 ;+36</pre>
|
|
|
|
<p><b>.start_y</b> - îòñòóï ñâåðõó</p>
|
|
<p><b>.start_x</b> - îòñòóï ñëåâà</p>
|
|
<p><b>.background_flag</b> - åñëè 1 òî èñïîëüçîâàòü <i>.background_color</i> äëÿ çàëèâêè</p>
|
|
<p><b>.background_color</b> - öâåò ôîíîâîé çàëèâêè</p>
|
|
<p><b>.text_pointer</b> - óêàçàòåëü íà îáëàñòü äàííûõ ñ èñõîäíîé ñòðîêîé ñèìâîëîâ</p>
|
|
<p><b>.work_area_pointer</b> - óêàçàòåëü íà îáëàñòü äàííûõ, ãäå áóäåò ñôîðìèðîâàíà âûâîäèìàÿ ñòðîêà ñèìâîëîâ</p>
|
|
<hr>
|
|
<p>Äîêóìåíòàöèÿ îáíîâëÿëàñü ïîñëåäíèé ðàç 26.08.11.</p>
|
|
|
|
</body>
|
|
</html> |