TempleOSCDV5.00.ISO
This commit is contained in:
1 parent
122df6338e
commit
f6eacf7744
374 files changed
+11078
-11204
No files matched your search
+29
-15
@@ -1,54 +1,69 @@
|
||||
/*$LK,"progress1",A="MN:progress1"$-$LK,"progress4",A="MN:progress4"$ are just global vars
|
||||
shown on the wallpaper. I use them in debugging a lot.
|
||||
|
||||
If you set $LK,"progress1_max",A="MN:progress1_max"$-$LK,"progress4_max",A="MN:progress4_max"$,
|
||||
then a bar will display.
|
||||
then a progress bar will display.
|
||||
|
||||
If you set $LK,"progress1_t0",A="MN:progress1_t0"$-$LK,"progress4_t0",A="MN:progress4_t0"$
|
||||
then the elapsed time will display.
|
||||
|
||||
If you set $LK,"progress1_tf",A="MN:progress1_tf"$-$LK,"progress4_tf",A="MN:progress4_tf"$
|
||||
then the estimated time will display.
|
||||
*/
|
||||
|
||||
U0 Main1()
|
||||
{
|
||||
"\nWith description.\n";
|
||||
PressAKey;
|
||||
ProgressBarsRst;
|
||||
progress1_max=200;
|
||||
StrCpy(progress1_desc,"Progress Demo"); //PROGRESS_DESC_LEN is max
|
||||
while (progress1++!=progress1_max)
|
||||
Sleep(20);
|
||||
progress1_max=0; //hide
|
||||
ProgressBarsRst;
|
||||
}
|
||||
|
||||
Main1;
|
||||
|
||||
U0 Main2()
|
||||
{
|
||||
"\nWith description and time.\n";
|
||||
"\nWith description and elapsed time.\n";
|
||||
PressAKey;
|
||||
ProgressBarsRst;
|
||||
progress1_max=200;
|
||||
progress1_t0=tS;
|
||||
StrCpy(progress1_desc,"Progress Demo"); //PROGRESS_DESC_LEN is max
|
||||
while (progress1++!=progress1_max)
|
||||
Sleep(20);
|
||||
progress1_max=0; //hide
|
||||
ProgressBarsRst;
|
||||
}
|
||||
|
||||
Main2;
|
||||
|
||||
U0 Main3()
|
||||
{
|
||||
"\nWith description, elapsed time and registry total time.\n";
|
||||
PressAKey;
|
||||
progress1_max=200;
|
||||
progress1_t0=tS;
|
||||
RegExe("DemoCompany/ProgressBars");
|
||||
StrCpy(progress1_desc,"Progress Demo"); //PROGRESS_DESC_LEN is max
|
||||
while (progress1++!=progress1_max)
|
||||
Sleep(20);
|
||||
ProgressBarsRst("DemoCompany/ProgressBars");
|
||||
}
|
||||
Main3;
|
||||
|
||||
U0 Main4()
|
||||
{
|
||||
"\nNo description.\n";
|
||||
PressAKey;
|
||||
ProgressBarsRst;
|
||||
//No progress1_desc
|
||||
progress1_max=200;
|
||||
while (progress1++!=progress1_max)
|
||||
Sleep(20);
|
||||
progress1_max=0; //hide
|
||||
ProgressBarsRst;
|
||||
}
|
||||
Main4;
|
||||
|
||||
Main3;
|
||||
|
||||
"\n$$LTRED$$Now, from asm... It's handy for debugging.$$FG$$\n"
|
||||
"$$LTRED$$Watch the progress on the wallpaper.$$FG$$\n";
|
||||
"\nNow, from asm... It's handy for debugging.\n"
|
||||
"Watch the progress on the wallpaper.\n";
|
||||
WinBorder(ON);
|
||||
PressAKey;
|
||||
|
||||
@@ -61,6 +76,5 @@ _PROGRESS_DEMO::
|
||||
MOV U64 [&progress1],RCX
|
||||
RET
|
||||
}
|
||||
|
||||
_extern _PROGRESS_DEMO U0 AsmProgressDemo();
|
||||
AsmProgressDemo;
|
||||
Reference in new issue
Block a user