246 lines
20 KiB
HTML
Executable File
246 lines
20 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="generator" content="TempleOS V5.03">
|
|
<meta name="viewport" content="width=device-width">
|
|
<link rel="stylesheet" href="/style/templeos.css">
|
|
<script src="/script/templeos.js"></script>
|
|
<style type="text/css">
|
|
.cF0{color:#000000;background-color:#ffffff;}
|
|
.cF1{color:#0000aa;background-color:#ffffff;}
|
|
.cF2{color:#00aa00;background-color:#ffffff;}
|
|
.cF3{color:#00aaaa;background-color:#ffffff;}
|
|
.cF4{color:#aa0000;background-color:#ffffff;}
|
|
.cF5{color:#aa00aa;background-color:#ffffff;}
|
|
.cF6{color:#aa5500;background-color:#ffffff;}
|
|
.cF7{color:#aaaaaa;background-color:#ffffff;}
|
|
.cF8{color:#555555;background-color:#ffffff;}
|
|
.cF9{color:#5555ff;background-color:#ffffff;}
|
|
.cFA{color:#55ff55;background-color:#ffffff;}
|
|
.cFB{color:#55ffff;background-color:#ffffff;}
|
|
.cFC{color:#ff5555;background-color:#ffffff;}
|
|
.cFD{color:#ff55ff;background-color:#ffffff;}
|
|
.cFE{color:#ffff55;background-color:#ffffff;}
|
|
.cFF{color:#ffffff;background-color:#ffffff;}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<pre id="content">
|
|
<a name="l1"></a><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CTemplateCSSlider</span><span class=cF0>
|
|
<a name="l2"></a>{
|
|
<a name="l3"></a> </span><span class=cF9>CTemplateCSSlider</span><span class=cF0> *next,*last;
|
|
<a name="l4"></a> </span><span class=cF1>U8</span><span class=cF0> *name;
|
|
<a name="l5"></a> </span><span class=cF9>I64</span><span class=cF0> num;
|
|
<a name="l6"></a>};
|
|
<a name="l7"></a>
|
|
<a name="l8"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CTemplateCS</span><span class=cF0>
|
|
<a name="l9"></a>{
|
|
<a name="l10"></a> </span><span class=cF9>CTemplateCSSlider</span><span class=cF0> *next_slider,*last_slider;
|
|
<a name="l11"></a> </span><span class=cF9>I64</span><span class=cF0> num_sliders,range,spacing,border;
|
|
<a name="l12"></a> </span><span class=cF1>U8</span><span class=cF0> *glbl_name;
|
|
<a name="l13"></a>};
|
|
<a name="l14"></a>
|
|
<a name="l15"></a></span><span class=cF9>CTemplateCS</span><span class=cF0> *</span><span class=cF5>CtrlSliderGet</span><span class=cF0>()
|
|
<a name="l16"></a>{
|
|
<a name="l17"></a> </span><span class=cF9>CTemplateCSSlider</span><span class=cF0> *tmps;
|
|
<a name="l18"></a> </span><span class=cF1>U8</span><span class=cF0> *st,pmt[</span><span class=cF3>STR_LEN</span><span class=cF0>];
|
|
<a name="l19"></a> </span><span class=cF9>CTemplateCS</span><span class=cF0> *res=</span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CTemplateCS</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l20"></a>
|
|
<a name="l21"></a> </span><span class=cF6>"$PURPLE$Ctrl Slider$FG$\n\n"</span><span class=cF0>;
|
|
<a name="l22"></a>
|
|
<a name="l23"></a> res->glbl_name=</span><span class=cF5>GetStr</span><span class=cF0>(</span><span class=cF6>"Glbl Struct Name (ENTER for No Glbl):"</span><span class=cF0>);
|
|
<a name="l24"></a> res->range=</span><span class=cF5>GetI64</span><span class=cF0> (</span><span class=cF6>"Range (%4d):"</span><span class=cF0>,30);
|
|
<a name="l25"></a> res->spacing=</span><span class=cF5>GetI64</span><span class=cF0>(</span><span class=cF6>"Spacing (%4d):"</span><span class=cF0>,20);
|
|
<a name="l26"></a> res->border=</span><span class=cF5>GetI64</span><span class=cF0> (</span><span class=cF6>"Border (%4d):"</span><span class=cF0>,2);
|
|
<a name="l27"></a>
|
|
<a name="l28"></a> res->next_slider=res->last_slider=&res->next_slider;
|
|
<a name="l29"></a> </span><span class=cF1>while</span><span class=cF0> (</span><span class=cF3>TRUE</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l30"></a> </span><span class=cF5>StrPrint</span><span class=cF0>(pmt,</span><span class=cF6>"Slider #%d Name:"</span><span class=cF0>,res->num_sliders+1);
|
|
<a name="l31"></a> st=</span><span class=cF5>GetStr</span><span class=cF0>(pmt);
|
|
<a name="l32"></a> </span><span class=cF1>if</span><span class=cF0> (!*st) {
|
|
<a name="l33"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
|
|
<a name="l34"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l35"></a> }
|
|
<a name="l36"></a> tmps=</span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CTemplateCSSlider</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l37"></a> tmps->name=st;
|
|
<a name="l38"></a> </span><span class=cF5>QueIns</span><span class=cF0>(tmps,res->last_slider);
|
|
<a name="l39"></a> tmps->num=res->num_sliders++;
|
|
<a name="l40"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l41"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
|
<a name="l42"></a>}
|
|
<a name="l43"></a>
|
|
<a name="l44"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>TemplateCtrlSlider</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *doc)
|
|
<a name="l45"></a>{
|
|
<a name="l46"></a> </span><span class=cF9>CTask</span><span class=cF0> *task;
|
|
<a name="l47"></a> </span><span class=cF9>CTemplateCS</span><span class=cF0> *m=</span><span class=cF3>NULL</span><span class=cF0>;
|
|
<a name="l48"></a> </span><span class=cF9>CTemplateCSSlider</span><span class=cF0> *tmps;
|
|
<a name="l49"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l50"></a>
|
|
<a name="l51"></a> </span><span class=cF5>DocUnlock</span><span class=cF0>(doc);
|
|
<a name="l52"></a> </span><span class=cF5>DocRecalc</span><span class=cF0>(doc);
|
|
<a name="l53"></a> </span><span class=cF5>DocCaptureUndo</span><span class=cF0>(doc,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l54"></a>
|
|
<a name="l55"></a> task=</span><span class=cF5>User</span><span class=cF0>(</span><span class=cF6>"CTemplateCS **_m=0x%X;*_m=CtrlSliderGet;\n"</span><span class=cF0>,&m);
|
|
<a name="l56"></a> </span><span class=cF1>while</span><span class=cF0> (!m)
|
|
<a name="l57"></a> </span><span class=cF5>Yield</span><span class=cF0>;
|
|
<a name="l58"></a>
|
|
<a name="l59"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,
|
|
<a name="l60"></a></span><span class=cF6>"#define SLIDER_RANGE\t%d</span><span class=cF0>
|
|
<a name="l61"></a></span><span class=cF6>#define SLIDER_SPACING\t%d</span><span class=cF0>
|
|
<a name="l62"></a></span><span class=cF6>#define SLIDER_BORDER\t%d</span><span class=cF0>
|
|
<a name="l63"></a>
|
|
<a name="l64"></a></span><span class=cF6>class CSliderState</span><span class=cF0>
|
|
<a name="l65"></a></span><span class=cF6>{</span><span class=cF0>
|
|
<a name="l66"></a></span><span class=cF6>"</span><span class=cF0>,m->range,m->spacing,m->border);
|
|
<a name="l67"></a>
|
|
<a name="l68"></a> tmps=m->next_slider;
|
|
<a name="l69"></a> </span><span class=cF1>while</span><span class=cF0> (tmps!=&m->next_slider) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l70"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>" I64 %s;\n"</span><span class=cF0>,tmps->name);
|
|
<a name="l71"></a> tmps=tmps->next;
|
|
<a name="l72"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l73"></a> </span><span class=cF1>if</span><span class=cF0> (*m->glbl_name)
|
|
<a name="l74"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"} %s;\n"</span><span class=cF0>,m->glbl_name);
|
|
<a name="l75"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l76"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"};\n"</span><span class=cF0>);
|
|
<a name="l77"></a>
|
|
<a name="l78"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,
|
|
<a name="l79"></a></span><span class=cF6>"</span><span class=cF0>
|
|
<a name="l80"></a></span><span class=cF6>U0 DrawCtrlSlider(CDC *dc,CCtrl *c)</span><span class=cF0>
|
|
<a name="l81"></a></span><span class=cF6>{</span><span class=cF0>
|
|
<a name="l82"></a></span><span class=cF6> CSliderState *s=c->state;</span><span class=cF0>
|
|
<a name="l83"></a>
|
|
<a name="l84"></a></span><span class=cF6> dc->color=LTRED;</span><span class=cF0>
|
|
<a name="l85"></a></span><span class=cF6> GrRect(dc, c->left,c->top,%d*SLIDER_SPACING+%d,SLIDER_SPACING*2+SLIDER_RANGE);</span><span class=cF0>
|
|
<a name="l86"></a></span><span class=cF6> dc->color=BLUE;</span><span class=cF0>
|
|
<a name="l87"></a></span><span class=cF6> GrRect(dc, c->left+SLIDER_BORDER,c->top+SLIDER_BORDER,</span><span class=cF0>
|
|
<a name="l88"></a></span><span class=cF6> %d*SLIDER_SPACING+%d-2*SLIDER_BORDER,SLIDER_SPACING*2</span><span class=cF0>
|
|
<a name="l89"></a></span><span class=cF6> +SLIDER_RANGE-2*SLIDER_BORDER);</span><span class=cF0>
|
|
<a name="l90"></a></span><span class=cF6> dc->color=BLACK;</span><span class=cF0>
|
|
<a name="l91"></a></span><span class=cF6>"</span><span class=cF0>,m->num_sliders+1,m->num_sliders,m->num_sliders+1,m->num_sliders);
|
|
<a name="l92"></a>
|
|
<a name="l93"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<m->num_sliders;i++)
|
|
<a name="l94"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,
|
|
<a name="l95"></a></span><span class=cF6>" GrLine(dc,c->left+%d*SLIDER_SPACING+%d,c->top+SLIDER_SPACING,</span><span class=cF0>
|
|
<a name="l96"></a></span><span class=cF6> c->left+%d*SLIDER_SPACING+%d,c->top+SLIDER_SPACING+SLIDER_RANGE-1);</span><span class=cF0>
|
|
<a name="l97"></a></span><span class=cF6>"</span><span class=cF0>,i+1,i,i+1,i);
|
|
<a name="l98"></a>
|
|
<a name="l99"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>" dc->color=LTRED;\n"</span><span class=cF0>);
|
|
<a name="l100"></a>
|
|
<a name="l101"></a> tmps=m->next_slider;
|
|
<a name="l102"></a> </span><span class=cF1>while</span><span class=cF0> (tmps!=&m->next_slider) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l103"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,
|
|
<a name="l104"></a></span><span class=cF6>" GrPrint(dc,c->left+%d*SLIDER_SPACING+%d-FONT_WIDTH/2,</span><span class=cF0>
|
|
<a name="l105"></a></span><span class=cF6> c->top+SLIDER_SPACING+SLIDER_RANGE+3,</span><span class=cF0>
|
|
<a name="l106"></a></span><span class=cF6> \"%%d\",s->%s*10/SLIDER_RANGE);\n"</span><span class=cF0>,
|
|
<a name="l107"></a> tmps->num+1,tmps->num,tmps->name);
|
|
<a name="l108"></a> tmps=tmps->next;
|
|
<a name="l109"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l110"></a>
|
|
<a name="l111"></a> tmps=m->next_slider;
|
|
<a name="l112"></a> </span><span class=cF1>while</span><span class=cF0> (tmps!=&m->next_slider) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l113"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,
|
|
<a name="l114"></a> </span><span class=cF6>" GrRect(dc,c->left+%d*SLIDER_SPACING+%d-3,"</span><span class=cF0>
|
|
<a name="l115"></a> </span><span class=cF6>"c->top+SLIDER_SPACING+SLIDER_RANGE-1-s->%s-2,7,5);\n"</span><span class=cF0>,
|
|
<a name="l116"></a> tmps->num+1,tmps->num,tmps->name);
|
|
<a name="l117"></a> tmps=tmps->next;
|
|
<a name="l118"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l119"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>" dc->color=YELLOW;\n"</span><span class=cF0>);
|
|
<a name="l120"></a>
|
|
<a name="l121"></a> tmps=m->next_slider;
|
|
<a name="l122"></a> </span><span class=cF1>while</span><span class=cF0> (tmps!=&m->next_slider) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l123"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>" GrRect(dc,c->left+%d*SLIDER_SPACING+%d-2,"</span><span class=cF0>
|
|
<a name="l124"></a> </span><span class=cF6>"c->top+SLIDER_SPACING+SLIDER_RANGE-1-s->%s-1,5,3);\n"</span><span class=cF0>,
|
|
<a name="l125"></a> tmps->num+1,tmps->num,tmps->name);
|
|
<a name="l126"></a> tmps=tmps->next;
|
|
<a name="l127"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l128"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,
|
|
<a name="l129"></a></span><span class=cF6>"}</span><span class=cF0>
|
|
<a name="l130"></a>
|
|
<a name="l131"></a></span><span class=cF6>U0 UpdateDerivedCtrlSlider(CCtrl *c)</span><span class=cF0>
|
|
<a name="l132"></a></span><span class=cF6>{</span><span class=cF0>
|
|
<a name="l133"></a></span><span class=cF6> CSliderState *s=c->state;</span><span class=cF0>
|
|
<a name="l134"></a></span><span class=cF6> c->left=c->win_task->pix_width/2-(SLIDER_SPACING*3+2)/2;</span><span class=cF0>
|
|
<a name="l135"></a></span><span class=cF6> c->right=c->left+%d*SLIDER_SPACING+%d;</span><span class=cF0>
|
|
<a name="l136"></a></span><span class=cF6> c->top=c->win_task->pix_height/2-(SLIDER_SPACING*2+SLIDER_RANGE)/2;</span><span class=cF0>
|
|
<a name="l137"></a></span><span class=cF6> c->bottom=c->top+SLIDER_SPACING*2+SLIDER_RANGE;</span><span class=cF0>
|
|
<a name="l138"></a></span><span class=cF6>"</span><span class=cF0>,m->num_sliders+1,m->num_sliders);
|
|
<a name="l139"></a>
|
|
<a name="l140"></a> tmps=m->next_slider;
|
|
<a name="l141"></a> </span><span class=cF1>while</span><span class=cF0> (tmps!=&m->next_slider) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l142"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>" s->%s=ClampI64(s->%s,0,SLIDER_RANGE-1);\n"</span><span class=cF0>,
|
|
<a name="l143"></a> tmps->name,tmps->name);
|
|
<a name="l144"></a> tmps=tmps->next;
|
|
<a name="l145"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l146"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,
|
|
<a name="l147"></a></span><span class=cF6>"}</span><span class=cF0>
|
|
<a name="l148"></a>
|
|
<a name="l149"></a></span><span class=cF6>U0 LeftClickSlider(CCtrl *c,I64 x,I64 y,Bool down)</span><span class=cF0>
|
|
<a name="l150"></a></span><span class=cF6>{</span><span class=cF0>
|
|
<a name="l151"></a></span><span class=cF6> no_warn down;</span><span class=cF0>
|
|
<a name="l152"></a></span><span class=cF6> CSliderState *s=c->state;</span><span class=cF0>
|
|
<a name="l153"></a></span><span class=cF6>"</span><span class=cF0>);
|
|
<a name="l154"></a>
|
|
<a name="l155"></a> tmps=m->next_slider;
|
|
<a name="l156"></a> </span><span class=cF1>while</span><span class=cF0> (tmps!=&m->next_slider) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l157"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>" "</span><span class=cF0>);
|
|
<a name="l158"></a> </span><span class=cF1>if</span><span class=cF0> (tmps!=m->next_slider)
|
|
<a name="l159"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"else "</span><span class=cF0>);
|
|
<a name="l160"></a> </span><span class=cF1>if</span><span class=cF0> (tmps->next==&m->next_slider)
|
|
<a name="l161"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"\n"</span><span class=cF0>);
|
|
<a name="l162"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l163"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"if (x<c->left+%d*SLIDER_SPACING+%d+SLIDER_SPACING/2)\n"</span><span class=cF0>,
|
|
<a name="l164"></a> tmps->num+1,tmps->num);
|
|
<a name="l165"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>" s->%s=SLIDER_RANGE-1-(y-(c->top+SLIDER_SPACING));\n"</span><span class=cF0>,
|
|
<a name="l166"></a> tmps->name);
|
|
<a name="l167"></a> tmps=tmps->next;
|
|
<a name="l168"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l169"></a>
|
|
<a name="l170"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,
|
|
<a name="l171"></a></span><span class=cF6>" if (c->update_derived_vals)</span><span class=cF0>
|
|
<a name="l172"></a></span><span class=cF6> (*c->update_derived_vals)(c);</span><span class=cF0>
|
|
<a name="l173"></a></span><span class=cF6>}</span><span class=cF0>
|
|
<a name="l174"></a>
|
|
<a name="l175"></a></span><span class=cF6>CCtrl *SliderNew()</span><span class=cF0>
|
|
<a name="l176"></a></span><span class=cF6>{</span><span class=cF0>
|
|
<a name="l177"></a></span><span class=cF6> CCtrl *c=CAlloc(sizeof(CCtrl));</span><span class=cF0>
|
|
<a name="l178"></a></span><span class=cF6> c->win_task=Fs;</span><span class=cF0>
|
|
<a name="l179"></a></span><span class=cF6> c->flags=CTRLF_SHOW|CTRLF_CAPTURE_LEFT_MS;</span><span class=cF0>
|
|
<a name="l180"></a></span><span class=cF6> c->type=CTRLT_GENERIC;</span><span class=cF0>
|
|
<a name="l181"></a></span><span class=cF6>"</span><span class=cF0>);
|
|
<a name="l182"></a> </span><span class=cF1>if</span><span class=cF0> (*m->glbl_name)
|
|
<a name="l183"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>" c->state=&%s;\n"</span><span class=cF0>
|
|
<a name="l184"></a> </span><span class=cF6>" MemSet(&%s,0,sizeof(CSliderState));\n"</span><span class=cF0>,m->glbl_name,m->glbl_name);
|
|
<a name="l185"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l186"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc, </span><span class=cF6>" c->state=CAlloc(sizeof(CSliderState));\n"</span><span class=cF0>);
|
|
<a name="l187"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,
|
|
<a name="l188"></a></span><span class=cF6>" c->draw_it=&DrawCtrlSlider;</span><span class=cF0>
|
|
<a name="l189"></a></span><span class=cF6> c->left_click=&LeftClickSlider;</span><span class=cF0>
|
|
<a name="l190"></a></span><span class=cF6> c->update_derived_vals=&UpdateDerivedCtrlSlider;</span><span class=cF0>
|
|
<a name="l191"></a></span><span class=cF6> QueIns(c,Fs->last_ctrl);</span><span class=cF0>
|
|
<a name="l192"></a></span><span class=cF6> TaskDerivedValsUpdate;</span><span class=cF0>
|
|
<a name="l193"></a></span><span class=cF6> return c;</span><span class=cF0>
|
|
<a name="l194"></a></span><span class=cF6>}</span><span class=cF0>
|
|
<a name="l195"></a>
|
|
<a name="l196"></a></span><span class=cF6>U0 SliderDel(CCtrl *c)</span><span class=cF0>
|
|
<a name="l197"></a></span><span class=cF6>{</span><span class=cF0>
|
|
<a name="l198"></a></span><span class=cF6> QueRem(c);</span><span class=cF0>
|
|
<a name="l199"></a></span><span class=cF6>"</span><span class=cF0>);
|
|
<a name="l200"></a> </span><span class=cF1>if</span><span class=cF0> (!*m->glbl_name)
|
|
<a name="l201"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>" Free(c->state);\n"</span><span class=cF0>);
|
|
<a name="l202"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,
|
|
<a name="l203"></a></span><span class=cF6>" Free(c);</span><span class=cF0>
|
|
<a name="l204"></a></span><span class=cF6>}</span><span class=cF0>
|
|
<a name="l205"></a></span><span class=cF6>"</span><span class=cF0>);
|
|
<a name="l206"></a>
|
|
<a name="l207"></a> </span><span class=cF5>Kill</span><span class=cF0>(task); </span><span class=cF2>//This frees memory.</span><span class=cF0>
|
|
<a name="l208"></a>
|
|
<a name="l209"></a> </span><span class=cF5>RegOneTimePopUp</span><span class=cF0>(</span><span class=cF3>ARf_MANAGE_SLIDER</span><span class=cF0>,
|
|
<a name="l210"></a> </span><span class=cF6>"Modify the code to your heart's content.\n"</span><span class=cF0>
|
|
<a name="l211"></a> </span><span class=cF6>"The code is no longer managed.\n"</span><span class=cF0>);
|
|
<a name="l212"></a>
|
|
<a name="l213"></a> </span><span class=cF5>DocLock</span><span class=cF0>(doc);
|
|
<a name="l214"></a>}
|
|
</span></pre></body>
|
|
</html>
|