Examples grouped by GUI and console
@ -1 +0,0 @@
|
||||
@call "%~dp0..\..\Lib\build.bat" "%~dp0ColorButtons"
|
1
Examples/Console/ConsoleColors/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\..\..\Lib\build.bat" "%~dp0ConsoleColors"
|
1
Examples/Console/DateTime/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\..\..\Lib\build.bat" "%~dp0DateTime"
|
1
Examples/Console/GetCurrentDir/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\..\..\Lib\build.bat" "%~dp0GetCurrentDir"
|
1
Examples/Console/Hello/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\..\..\Lib\build.bat" "%~dp0Hello"
|
1
Examples/Console/LoadFile/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\..\..\Lib\build.bat" "%~dp0LoadFile"
|
1
Examples/Console/ReadFolder/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\..\..\Lib\build.bat" "%~dp0ReadFolder"
|
@ -1 +0,0 @@
|
||||
@call "%~dp0..\..\Lib\build.bat" "%~dp0ConsoleColors"
|
@ -1,34 +0,0 @@
|
||||
program DateTime;
|
||||
|
||||
uses
|
||||
KolibriOS, CRT;
|
||||
|
||||
var
|
||||
SystemDate: TSystemDate;
|
||||
SystemTime: TSystemTime;
|
||||
CursorPos: TConsolePoint;
|
||||
|
||||
begin
|
||||
ConsoleInit('Date/Time');
|
||||
|
||||
SetCursorHeight(0);
|
||||
SetCursorPos(27, 11);
|
||||
Write(
|
||||
'System Date and System Time'#10 +
|
||||
' '
|
||||
);
|
||||
CursorPos := GetCursorPos;
|
||||
repeat
|
||||
SystemDate := GetSystemDate;
|
||||
SystemTime := GetSystemTime;
|
||||
with SystemDate, SystemTime do
|
||||
begin
|
||||
Write('%02x.%02x.%02x', Day, Month, Year);
|
||||
Write(' - %02x:%02x:%02x', Hours, Minutes, Seconds);
|
||||
end;
|
||||
SetCursorPos(CursorPos);
|
||||
Sleep(50);
|
||||
until Escape;
|
||||
|
||||
ConsoleExit(True);
|
||||
end.
|
@ -1 +0,0 @@
|
||||
@call "%~dp0..\..\Lib\build.bat" "%~dp0DateTime"
|
@ -1,3 +0,0 @@
|
||||
@echo off
|
||||
call "%~dp0..\..\Lib\build.bat" "%~dp0DrawImage"
|
||||
copy "%~dp0*.tga" "%~dp0..\..\Bin" >nul
|
@ -1,3 +0,0 @@
|
||||
@echo off
|
||||
call "%~dp0..\..\Lib\build.bat" "%~dp0DrawImageEx"
|
||||
copy "%~dp0*.bmp" "%~dp0..\..\Bin" >nul
|
@ -1 +0,0 @@
|
||||
@call "%~dp0..\..\Lib\build.bat" "%~dp0DrawText"
|
@ -15,53 +15,53 @@ PROJECTS = ColorButtons.exe ConsoleColors.exe DateTime.exe DrawImage.exe DrawIma
|
||||
default: $(PROJECTS)
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
ColorButtons.exe: ColorButtons\ColorButtons.dpr
|
||||
ColorButtons.exe: GUI\ColorButtons\ColorButtons.dpr
|
||||
$(DCC)
|
||||
|
||||
ConsoleColors.exe: ConsoleColors\ConsoleColors.dpr
|
||||
ConsoleColors.exe: Console\ConsoleColors\ConsoleColors.dpr
|
||||
$(DCC)
|
||||
|
||||
DateTime.exe: DateTime\DateTime.dpr
|
||||
DateTime.exe: Console\DateTime\DateTime.dpr
|
||||
$(DCC)
|
||||
|
||||
DrawImage.exe: DrawImage\DrawImage.dpr
|
||||
DrawImage.exe: GUI\DrawImage\DrawImage.dpr
|
||||
$(DCC)
|
||||
|
||||
DrawImageEx.exe: DrawImageEx\DrawImageEx.dpr
|
||||
DrawImageEx.exe: GUI\DrawImageEx\DrawImageEx.dpr
|
||||
$(DCC)
|
||||
|
||||
DrawText.exe: DrawText\DrawText.dpr
|
||||
DrawText.exe: GUI\DrawText\DrawText.dpr
|
||||
$(DCC)
|
||||
|
||||
GetCurrentDirectory.exe: GetCurrentDir\GetCurrentDir.dpr
|
||||
GetCurrentDirectory.exe: Console\GetCurrentDir\GetCurrentDir.dpr
|
||||
$(DCC)
|
||||
|
||||
GetPixel.exe: GetPixel\GetPixel.dpr
|
||||
GetPixel.exe: GUI\GetPixel\GetPixel.dpr
|
||||
$(DCC)
|
||||
|
||||
GetPointOwner.exe: GetPointOwner\GetPointOwner.dpr
|
||||
GetPointOwner.exe: GUI\GetPointOwner\GetPointOwner.dpr
|
||||
$(DCC)
|
||||
|
||||
Hello.exe: Hello\Hello.dpr
|
||||
Hello.exe: Console\Hello\Hello.dpr
|
||||
$(DCC)
|
||||
|
||||
HelloGUI.exe: Hello\HelloGUI.dpr
|
||||
HelloGUI.exe: GUI\Hello\HelloGUI.dpr
|
||||
$(DCC)
|
||||
|
||||
LoadFile.exe: LoadFile\LoadFile.dpr
|
||||
LoadFile.exe: Console\LoadFile\LoadFile.dpr
|
||||
$(DCC)
|
||||
|
||||
ReadFolder.exe: ReadFolder\ReadFolder.dpr
|
||||
ReadFolder.exe: Console\ReadFolder\ReadFolder.dpr
|
||||
$(DCC)
|
||||
|
||||
Screenshot.exe: Screenshot\Screenshot.dpr
|
||||
Screenshot.exe: GUI\Screenshot\Screenshot.dpr
|
||||
$(DCC)
|
||||
|
||||
SetCursor.exe: SetCursor\SetCursor.dpr
|
||||
SetCursor.exe: GUI\SetCursor\SetCursor.dpr
|
||||
$(DCC)
|
||||
|
||||
SetPixel.exe: SetPixel\SetPixel.dpr
|
||||
SetPixel.exe: GUI\SetPixel\SetPixel.dpr
|
||||
$(DCC)
|
||||
|
||||
SetWindowPos.exe: SetWindowPos\SetWindowPos.dpr
|
||||
SetWindowPos.exe: GUI\SetWindowPos\SetWindowPos.dpr
|
||||
$(DCC)
|
1
Examples/GUI/ColorButtons/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\..\..\Lib\build.bat" "%~dp0ColorButtons"
|
Before Width: | Height: | Size: 9.5 KiB After Width: | Height: | Size: 9.5 KiB |
3
Examples/GUI/DrawImage/build.bat
Normal file
@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
call "%~dp0..\..\..\Lib\build.bat" "%~dp0DrawImage"
|
||||
copy "%~dp0*.tga" "%~dp0..\..\..\Bin" >nul
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
3
Examples/GUI/DrawImageEx/build.bat
Normal file
@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
call "%~dp0..\..\..\Lib\build.bat" "%~dp0DrawImageEx"
|
||||
copy "%~dp0*.bmp" "%~dp0..\..\..\Bin" >nul
|
1
Examples/GUI/DrawText/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\..\..\Lib\build.bat" "%~dp0DrawText"
|
1
Examples/GUI/GetPixel/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\..\..\Lib\build.bat" "%~dp0GetPixel"
|
1
Examples/GUI/GetPointOwner/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\..\..\Lib\build.bat" "%~dp0GetPointOwner"
|
1
Examples/GUI/Hello/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\..\..\Lib\build.bat" "%~dp0HelloGUI"
|
1
Examples/GUI/Screenshot/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\..\..\Lib\build.bat" "%~dp0Screenshot"
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
3
Examples/GUI/SetCursor/build.bat
Normal file
@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
call "%~dp0..\..\..\Lib\build.bat" "%~dp0SetCursor"
|
||||
copy "%~dp0*.bmp" "%~dp0..\..\..\Bin" >nul
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
1
Examples/GUI/SetPixel/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\..\..\Lib\build.bat" "%~dp0SetPixel"
|
1
Examples/GUI/SetWindowPos/build.bat
Normal file
@ -0,0 +1 @@
|
||||
@call "%~dp0..\..\..\Lib\build.bat" "%~dp0SetWindowPos"
|
@ -1 +0,0 @@
|
||||
@call "%~dp0..\..\Lib\build.bat" "%~dp0GetCurrentDir"
|
@ -1 +0,0 @@
|
||||
@call "%~dp0..\..\Lib\build.bat" "%~dp0GetPixel"
|
@ -1 +0,0 @@
|
||||
@call "%~dp0..\..\Lib\build.bat" "%~dp0GetPointOwner"
|
@ -1,3 +0,0 @@
|
||||
@echo off
|
||||
call "%~dp0..\..\Lib\build.bat" "%~dp0Hello"
|
||||
call "%~dp0..\..\Lib\build.bat" "%~dp0HelloGUI"
|
@ -1 +0,0 @@
|
||||
@call "%~dp0..\..\Lib\build.bat" "%~dp0LoadFile"
|
@ -1 +0,0 @@
|
||||
@call "%~dp0..\..\Lib\build.bat" "%~dp0ReadFolder"
|
@ -1 +0,0 @@
|
||||
@call "%~dp0..\..\Lib\build.bat" "%~dp0Screenshot"
|
@ -1,3 +0,0 @@
|
||||
@echo off
|
||||
call "%~dp0..\..\Lib\build.bat" "%~dp0SetCursor"
|
||||
copy "%~dp0*.bmp" "%~dp0..\..\Bin" >nul
|
@ -1 +0,0 @@
|
||||
@call "%~dp0..\..\Lib\build.bat" "%~dp0SetPixel"
|
@ -1 +0,0 @@
|
||||
@call "%~dp0..\..\Lib\build.bat" "%~dp0SetWindowPos"
|
@ -1,6 +1,11 @@
|
||||
@echo off
|
||||
|
||||
for /d %%f in (%~dp0Examples\*) do (
|
||||
for /d %%f in (%~dp0Examples\Console\*) do (
|
||||
call %%f\build.bat
|
||||
if errorlevel 1 goto exit
|
||||
)
|
||||
|
||||
for /d %%f in (%~dp0Examples\GUI\*) do (
|
||||
call %%f\build.bat
|
||||
if errorlevel 1 goto exit
|
||||
)
|
||||
|