Убран PabcRtl32.dll
This commit is contained in:
parent
0a0bb394ae
commit
c7a3beec39
|
|
@ -3615,7 +3615,7 @@ namespace PascalABCCompiler
|
|||
public static Dictionary<string, string> standart_assembly_dict = new Dictionary<string, string>();
|
||||
static Compiler()
|
||||
{
|
||||
string[] ss = new string[] { "mscorlib.dll","System.dll", "System.Core.dll", "System.Numerics.dll", "System.Windows.Forms.dll", "PABCRtl.dll", "PABCRtl32.dll" };
|
||||
string[] ss = new string[] { "mscorlib.dll","System.dll", "System.Core.dll", "System.Numerics.dll", "System.Windows.Forms.dll", "PABCRtl.dll" };
|
||||
foreach (var x in ss)
|
||||
standart_assembly_dict[x] = get_standart_assembly_path(x);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ internal static class RevisionClass
|
|||
public const string Major = "3";
|
||||
public const string Minor = "5";
|
||||
public const string Build = "0";
|
||||
public const string Revision = "2223";
|
||||
public const string Revision = "2226";
|
||||
|
||||
public const string MainVersion = Major + "." + Minor;
|
||||
public const string FullVersion = Major + "." + Minor + "." + Build + "." + Revision;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
%MINOR%=5
|
||||
%REVISION%=2223
|
||||
%COREVERSION%=0
|
||||
%REVISION%=2226
|
||||
%MINOR%=5
|
||||
%MAJOR%=3
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ begin
|
|||
begin
|
||||
var x := Random(Window.Width-50);
|
||||
var y := Random(Window.Height-100);
|
||||
var ob := RectangleWPF.Create(x,y,50,50,Colors.LightGreen).WithBorder;
|
||||
var ob := RectangleWPF.Create(x,y,50,50,Colors.LightGreen,1);
|
||||
ob.FontSize := 25;
|
||||
ob.Number := i;
|
||||
end;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ begin
|
|||
var c := new CircleWPF(Window.Center, 20, Colors.Green);
|
||||
|
||||
BeginFrameBasedAnimationTime(dt->begin
|
||||
c.Move(dt);
|
||||
c.MoveTime(dt);
|
||||
end);
|
||||
|
||||
OnKeyDown := k -> begin
|
||||
|
|
|
|||
|
|
@ -3,11 +3,12 @@
|
|||
type
|
||||
BulletWPF = class(CircleWPF) end;
|
||||
MonsterWPF = class(SquareWPF) end;
|
||||
PlayerWPF = class(EllipseWPF) end;
|
||||
|
||||
begin
|
||||
var c := new EllipseWPF(200, 300, 30, 50, RandomColor);
|
||||
c.Velocity := 100;
|
||||
c.Number := 0;
|
||||
var Player := new PlayerWPF(GraphWindow.Center, 30, 50, RandomColor);
|
||||
Player.Velocity := 100;
|
||||
Player.Number := 0;
|
||||
|
||||
loop 5 do
|
||||
begin
|
||||
|
|
@ -15,11 +16,11 @@ begin
|
|||
m.Velocity := 50;
|
||||
end;
|
||||
|
||||
OnMouseMove := (x,y,mb) -> c.RotateToPoint(x,y);
|
||||
OnMouseMove := (x,y,mb) -> Player.RotateToPoint(x,y);
|
||||
|
||||
OnMouseDown := (x,y,mb) -> begin
|
||||
var cc := new BulletWPF(c.CenterTop,5,Colors.Red);
|
||||
cc.Direction := (x-c.Center.X,y-c.Center.Y);
|
||||
var cc := new BulletWPF(Player.CenterTop,5,Colors.Red);
|
||||
cc.Direction := (x-Player.Center.X,y-Player.Center.Y);
|
||||
cc.Velocity := 300;
|
||||
end;
|
||||
|
||||
|
|
@ -27,33 +28,41 @@ begin
|
|||
|
||||
BeginFrameBasedAnimationTime(dt->begin
|
||||
Window.Title := 'Количество объектов: '+Objects.Count;
|
||||
// Перемещение игрока
|
||||
if kr then
|
||||
c.Dx := 1
|
||||
Player.Dx := 1
|
||||
else if kl then
|
||||
c.Dx := -1
|
||||
else c.Dx := 0;
|
||||
Player.Dx := -1
|
||||
else Player.Dx := 0;
|
||||
if ku then
|
||||
c.Dy := -1
|
||||
Player.Dy := -1
|
||||
else if kd then
|
||||
c.Dy := 1
|
||||
else c.Dy := 0;
|
||||
Player.Dy := 1
|
||||
else Player.Dy := 0;
|
||||
|
||||
for var i:=Objects.Count-1 downto 0 do // все перемещаются в своём направлении со своей скоростью
|
||||
begin
|
||||
var o := Objects[i];
|
||||
if o is MonsterWPF then
|
||||
o.Direction := (c.Center.X - o.Center.X,c.Center.Y-o.Center.Y);
|
||||
o.Move(dt);
|
||||
o.Direction := (Player.Center.X - o.Center.X,Player.Center.Y-o.Center.Y);
|
||||
o.MoveTime(dt);
|
||||
end;
|
||||
|
||||
if Player.IntersectionList.Any(o -> o is MonsterWPF) then
|
||||
begin
|
||||
// Конец игры
|
||||
|
||||
end;
|
||||
end);
|
||||
|
||||
CreateTimer(100,procedure -> // Таймер убивания монстров и умирания объектов за пределами экрана
|
||||
CreateTimerAndStart(100,procedure -> // Таймер убивания монстров и умирания объектов за пределами экрана
|
||||
begin
|
||||
for var i:=Objects.Count-1 downto 0 do
|
||||
begin
|
||||
var o := Objects[i];
|
||||
if (o.Center.X < 0) or (o.Center.X > Window.Width) or
|
||||
(o.Center.Y < 0) or (o.Center.Y > Window.Height) then
|
||||
if not (o is PlayerWPF) then
|
||||
o.Destroy;
|
||||
if o is BulletWPF then
|
||||
foreach var x in o.IntersectionList do
|
||||
|
|
@ -61,15 +70,16 @@ begin
|
|||
begin
|
||||
x.Destroy;
|
||||
o.Destroy;
|
||||
c.Number += 1;
|
||||
Player.Number += 1;
|
||||
break;
|
||||
end;
|
||||
end;
|
||||
end);
|
||||
|
||||
CreateTimer(500,procedure -> // Таймер рождения монстров
|
||||
CreateTimerAndStart(1000,procedure -> // Таймер рождения монстров
|
||||
begin
|
||||
var m := new MonsterWPF(750,Random(10,550),30,RandomColor);
|
||||
var x := Random(2)=0 ? 750 : 50;
|
||||
var m := new MonsterWPF(x,Random(10,550),30,RandomColor);
|
||||
m.Velocity := 50;
|
||||
end);
|
||||
|
||||
|
|
|
|||
|
|
@ -461,7 +461,7 @@ namespace PascalABCCompiler.NETGenerator
|
|||
an.Name = name;// + ".exe";
|
||||
else an.Name = name; //+ ".dll";
|
||||
|
||||
if (name == "PABCRtl" || name == "PABCRtl32")
|
||||
if (name == "PABCRtl")
|
||||
{
|
||||
pabc_rtl_converted = true;
|
||||
an.Flags = AssemblyNameFlags.PublicKey;
|
||||
|
|
@ -883,7 +883,7 @@ namespace PascalABCCompiler.NETGenerator
|
|||
{
|
||||
|
||||
}
|
||||
if (an.Name == "PABCRtl" || an.Name == "PABCRtl32")
|
||||
if (an.Name == "PABCRtl")
|
||||
{
|
||||
CustomAttributeBuilder cab = new CustomAttributeBuilder(typeof(AssemblyKeyFileAttribute).GetConstructor(new Type[] { typeof(string) }), new object[] { an.Name == "PABCRtl" ? "PublicKey.snk" : "PublicKey32.snk" });
|
||||
ab.SetCustomAttribute(cab);
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
3.5.0.2223
|
||||
3.5.0.2226
|
||||
|
|
|
|||
|
|
@ -3,9 +3,6 @@
|
|||
ExecWait '"$INSTDIR\ExecHide.exe" "$INSTDIR\gacutil.exe" /u "PABCRtl"'
|
||||
ExecWait '"$INSTDIR\ExecHide.exe" "$INSTDIR\gacutil.exe" /i "$INSTDIR\Lib\PABCRtl.dll"'
|
||||
|
||||
ExecWait '"$INSTDIR\ExecHide.exe" "$INSTDIR\gacutil.exe" /u "PABCRtl32"'
|
||||
ExecWait '"$INSTDIR\ExecHide.exe" "$INSTDIR\gacutil.exe" /i "$INSTDIR\Lib\PABCRtl32.dll"'
|
||||
|
||||
ExecWait '"$INSTDIR\ExecHide.exe" "$INSTDIR\gacutil.exe" /u "HelixToolkit.Wpf"'
|
||||
ExecWait '"$INSTDIR\ExecHide.exe" "$INSTDIR\gacutil.exe" /i "$INSTDIR\Lib\HelixToolkit.Wpf.dll"'
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
!define VERSION '3.5.0.2223'
|
||||
!define VERSION '3.5.0.2226'
|
||||
|
|
|
|||
|
|
@ -133,7 +133,6 @@
|
|||
File ..\bin\Lib\OpenGLABC.pcu
|
||||
|
||||
File ..\bin\Lib\PABCRtl.dll
|
||||
File ..\bin\Lib\PABCRtl32.dll
|
||||
File ..\bin\Lib\HelixToolkit.Wpf.dll
|
||||
File ..\bin\Lib\HelixToolkit.dll
|
||||
|
||||
|
|
|
|||
|
|
@ -38,11 +38,11 @@ type
|
|||
property TimerProc: ()->() read _procedure write _procedure;
|
||||
end;
|
||||
|
||||
function CreateTimer(ms: integer; TimerProc: procedure): Timer;
|
||||
function CreateTimerAndStart(ms: integer; TimerProc: procedure): Timer;
|
||||
|
||||
implementation
|
||||
|
||||
function CreateTimer(ms: integer; TimerProc: procedure): Timer;
|
||||
function CreateTimerAndStart(ms: integer; TimerProc: procedure): Timer;
|
||||
begin
|
||||
Result := new Timer(ms,TimerProc);
|
||||
Result.Start;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ namespace VisualPascalABC
|
|||
public bool ConverTabsToSpaces = true;
|
||||
public bool deleteEXEAfterExecute = false;
|
||||
public bool deletePDBAfterExecute = true;
|
||||
public bool UseOutputDirectory = false;
|
||||
public bool UseOutputDirectory = true;
|
||||
public string OutputDirectory = null;
|
||||
public bool PauseInRunModeIfConsole = true;
|
||||
public string DefaultSourceFileNameFormat = "Program{0}.pas";
|
||||
|
|
|
|||
|
|
@ -32,12 +32,6 @@ cd PABCRtl
|
|||
..\sn.exe -Vu PABCRtl.dll
|
||||
copy PABCRtl.dll ..\..\bin\Lib
|
||||
|
||||
..\..\bin\pabcnetc PABCRtl32.pas /rebuild
|
||||
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||
..\sn.exe -Vr PABCRtl32.dll
|
||||
..\sn.exe -R PABCRtl32.dll KeyPair32.snk
|
||||
..\sn.exe -Vu PABCRtl32.dll
|
||||
copy PABCRtl32.dll ..\..\bin\Lib
|
||||
cd ..
|
||||
ExecHide.exe gacutil.exe /u PABCRtl
|
||||
ExecHide.exe gacutil.exe /i ..\bin\Lib\PABCRtl.dll
|
||||
|
|
|
|||
|
|
@ -14,12 +14,6 @@ cd PABCRtl
|
|||
..\sn.exe -Vu PABCRtl.dll
|
||||
copy PABCRtl.dll ..\..\bin\Lib
|
||||
|
||||
..\..\bin\pabcnetc PABCRtl32.pas /rebuild
|
||||
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||
..\sn.exe -Vr PABCRtl32.dll
|
||||
..\sn.exe -R PABCRtl32.dll KeyPair32.snk
|
||||
..\sn.exe -Vu PABCRtl32.dll
|
||||
copy PABCRtl32.dll ..\..\bin\Lib
|
||||
cd ..
|
||||
ExecHide.exe gacutil.exe /u PABCRtl
|
||||
ExecHide.exe gacutil.exe /i ..\bin\Lib\PABCRtl.dll
|
||||
|
|
|
|||
|
|
@ -14,12 +14,6 @@ cd PABCRtl
|
|||
..\sn.exe -Vu PABCRtl.dll
|
||||
copy PABCRtl.dll ..\..\bin\Lib
|
||||
|
||||
..\..\bin\pabcnetc PABCRtl32.pas /rebuild
|
||||
@IF %ERRORLEVEL% NEQ 0 GOTO ERROR
|
||||
..\sn.exe -Vr PABCRtl32.dll
|
||||
..\sn.exe -R PABCRtl32.dll KeyPair32.snk
|
||||
..\sn.exe -Vu PABCRtl32.dll
|
||||
copy PABCRtl32.dll ..\..\bin\Lib
|
||||
cd ..
|
||||
ExecHide.exe gacutil.exe /u PABCRtl
|
||||
ExecHide.exe gacutil.exe /i ..\bin\Lib\PABCRtl.dll
|
||||
|
|
|
|||
|
|
@ -54,20 +54,23 @@ type
|
|||
if Click <> nil then
|
||||
Click;
|
||||
end;
|
||||
|
||||
function GetText: string := InvokeString(()->b.Content as string);
|
||||
procedure SetTextP(t: string) := b.Content := t;
|
||||
procedure SetText(t: string) := Invoke(SetTextP, t);
|
||||
procedure CreateP(Txt: string);
|
||||
procedure CreateP(Txt: string; fontSize: real);
|
||||
begin
|
||||
element := new GButton;
|
||||
element.Margin := new Thickness(0, 0, 0, GlobalHMargin);
|
||||
//Margin := GlobalMargin;
|
||||
Text := Txt;
|
||||
Self.FontSize := fontSize;
|
||||
b.Click += BClick;
|
||||
b.Focusable := False;
|
||||
ActivePanel.Children.Add(b);
|
||||
end;
|
||||
procedure CreatePXY(x,y: real; Txt: string);
|
||||
|
||||
procedure CreatePXY(x, y: real; Txt: string; fontSize: real);
|
||||
begin
|
||||
element := new GButton;
|
||||
element.SetLeft(x);
|
||||
|
|
@ -79,23 +82,26 @@ type
|
|||
b.Focusable := False;
|
||||
ActivePanel.Children.Add(b);
|
||||
end;
|
||||
|
||||
public
|
||||
Click: procedure;
|
||||
constructor Create(Txt: string);
|
||||
constructor Create(Txt: string; fontSize: real := 12);
|
||||
begin
|
||||
Invoke(CreateP,Txt);
|
||||
Invoke(CreateP, Txt, fontSize);
|
||||
end;
|
||||
constructor Create(x,y: real; Txt: string);
|
||||
|
||||
constructor Create(x, y: real; Txt: string; fontsize: real := 12);
|
||||
begin
|
||||
Invoke(CreatePXY,x,y,Txt);
|
||||
Invoke(CreatePXY, x, y, Txt, fontsize);
|
||||
end;
|
||||
|
||||
property Text: string read GetText write SetText;
|
||||
property FontSize: real read InvokeReal(()->b.FontSize) write Invoke(procedure(t: real) -> b.FontSize := t, value);
|
||||
property Enabled: boolean read InvokeBoolean(()->b.IsEnabled) write Invoke(procedure(t: boolean) -> b.IsEnabled := t, value);
|
||||
end;
|
||||
|
||||
///!#
|
||||
TextLabelT = class(CommonControl)
|
||||
TextBlockT = class(CommonControl)
|
||||
protected
|
||||
function b: GTextBlock := element as GTextBlock;
|
||||
procedure CreateP(Txt: string; fontsize: real);
|
||||
|
|
@ -108,6 +114,7 @@ type
|
|||
Text := Txt;
|
||||
ActivePanel.Children.Add(b);
|
||||
end;
|
||||
|
||||
procedure CreatePXY(x, y: real; Txt: string; fontsize: real);
|
||||
begin
|
||||
var tb := new GTextBlock;
|
||||
|
|
@ -121,6 +128,7 @@ type
|
|||
Text := Txt;
|
||||
ActivePanel.Children.Add(b);
|
||||
end;
|
||||
|
||||
public
|
||||
constructor Create(Txt: string; fontsize: real := 12):= Invoke(CreateP, Txt, fontsize);
|
||||
constructor Create(x, y: real; Txt: string; fontsize: real := 12):= Invoke(CreatePXY, x, y, Txt, fontsize);
|
||||
|
|
@ -128,7 +136,7 @@ type
|
|||
property FontSize: real read InvokeReal(()->b.FontSize) write Invoke(procedure(t: real) -> b.FontSize := t, value);
|
||||
end;
|
||||
|
||||
IntegerLabelT = class(TextLabelT)
|
||||
IntegerBlockT = class(TextBlockT)
|
||||
private
|
||||
val := 0;
|
||||
message: string;
|
||||
|
|
@ -138,12 +146,13 @@ type
|
|||
Self.message := message;
|
||||
val := initValue;
|
||||
end;
|
||||
|
||||
public
|
||||
property Value: integer read val write begin val := value; Text := message + ' ' + val; end;
|
||||
constructor Create(message: string; fontSize: real := 12; initValue: integer := 0):= Invoke(CreateP, message, fontSize, initValue);
|
||||
end;
|
||||
|
||||
RealLabelT = class(TextLabelT)
|
||||
RealBlockT = class(TextBlockT)
|
||||
private
|
||||
val := 0.0;
|
||||
message: string;
|
||||
|
|
@ -153,6 +162,7 @@ type
|
|||
Self.message := message;
|
||||
val := initValue;
|
||||
end;
|
||||
|
||||
public
|
||||
property Value: real read val write begin val := value; Text := message + ' ' + val.ToString(FracDigits); end;
|
||||
constructor Create(message: string; fontSize: real := 12; initValue: real := 0):= Invoke(CreateP, message, fontSize, initValue);
|
||||
|
|
@ -168,6 +178,7 @@ type
|
|||
if Click <> nil then
|
||||
Click;
|
||||
end;
|
||||
|
||||
function GetText: string := InvokeString(()->tb.Text);
|
||||
procedure SetTextP(t: string) := tb.Text := t;
|
||||
procedure SetText(t: string) := Invoke(SetTextP, t);
|
||||
|
|
@ -182,12 +193,14 @@ type
|
|||
tb.TextChanged += BTextChanged;
|
||||
ActivePanel.Children.Add(tb);
|
||||
end;
|
||||
|
||||
public
|
||||
event Click: procedure;
|
||||
constructor Create(Txt: string := ''; w: real := 0);
|
||||
begin
|
||||
Invoke(CreateP, Txt, w);
|
||||
end;
|
||||
|
||||
property Text: string read GetText write SetText;
|
||||
property FontSize: real read InvokeReal(()->tb.FontSize) write Invoke(procedure(t: real) -> tb.FontSize := t, value);
|
||||
end;
|
||||
|
|
@ -222,11 +235,12 @@ type
|
|||
e.Handled := True;
|
||||
end;}
|
||||
end;
|
||||
|
||||
property Value: integer read GetValue write SetValue;
|
||||
property FontSize: real read InvokeReal(()->tb.FontSize) write Invoke(procedure(t: real) -> tb.FontSize := t, value);
|
||||
end;
|
||||
|
||||
TextBoxWithLabelT = class(CommonControl)
|
||||
TextBoxWithBlockT = class(CommonControl)
|
||||
private
|
||||
l: TextBlock;
|
||||
protected
|
||||
|
|
@ -236,17 +250,18 @@ type
|
|||
if Click <> nil then
|
||||
Click;
|
||||
end;
|
||||
|
||||
function GetText: string := InvokeString(()->tb.Text);
|
||||
procedure SetTextP(t: string) := tb.Text := t;
|
||||
procedure SetText(t: string) := Invoke(SetTextP, t);
|
||||
procedure CreateP(LabelTxt,Txt: string; w: real);
|
||||
procedure CreateP(BlockTxt, Txt: string; w: real);
|
||||
begin
|
||||
var sp := new StackPanel;
|
||||
element := sp;
|
||||
sp.Orientation := Orientation.Horizontal;
|
||||
sp.HorizontalAlignment := HorizontalAlignment.Stretch;
|
||||
l := new TextBlock();
|
||||
l.Text := LabelTxt;
|
||||
l.Text := BlockTxt;
|
||||
sp.Children.Add(l);
|
||||
var tb := new GTextBox;
|
||||
tb.Width := 100;
|
||||
|
|
@ -259,12 +274,14 @@ type
|
|||
tb.TextChanged += BTextChanged;
|
||||
ActivePanel.Children.Add(sp);
|
||||
end;
|
||||
|
||||
public
|
||||
event Click: procedure;
|
||||
constructor Create(LabelTxt: string; Txt: string := ''; w: real := 0);
|
||||
constructor Create(BlockTxt: string; Txt: string := ''; w: real := 0);
|
||||
begin
|
||||
Invoke(CreateP,LabelTxt,Txt,w);
|
||||
Invoke(CreateP, BlockTxt, Txt, w);
|
||||
end;
|
||||
|
||||
property Text: string read GetText write SetText;
|
||||
property FontSize: real read InvokeReal(()->tb.FontSize) write Invoke(procedure(t: real) -> begin tb.FontSize := t; l.FontSize := t; end, value);
|
||||
end;
|
||||
|
|
@ -283,12 +300,14 @@ type
|
|||
Height := h;
|
||||
ActivePanel.Children.Add(tb);
|
||||
end;
|
||||
|
||||
procedure AddP(s: string);
|
||||
begin
|
||||
var lbi := new ListBoxItem();
|
||||
lbi.Content := s;
|
||||
tb.Items.Add(lbi);
|
||||
end;
|
||||
|
||||
procedure SortP := tb.Items.SortDescriptions.Add(new SortDescription('Content', ListSortDirection.Ascending));
|
||||
procedure SortPDescending := tb.Items.SortDescriptions.Add(new SortDescription('Content', ListSortDirection.Descending));
|
||||
public
|
||||
|
|
@ -329,6 +348,7 @@ type
|
|||
sl.Value := val;
|
||||
ActivePanel.Children.Add(sl);
|
||||
end;
|
||||
|
||||
procedure ValueChangedP := if ValueChanged <> nil then ValueChanged;
|
||||
public
|
||||
event ValueChanged: procedure;
|
||||
|
|
@ -336,6 +356,7 @@ type
|
|||
begin
|
||||
Invoke(CreateP, min, max, val);
|
||||
end;
|
||||
|
||||
property Minimum: real read GetMinimum write SetMinimum;
|
||||
property Maximum: real read GetMaximum write SetMaximum;
|
||||
property Value: real read GetValue write SetValue;
|
||||
|
|
@ -343,12 +364,12 @@ type
|
|||
end;
|
||||
|
||||
|
||||
function Button(Txt: string): ButtonT;
|
||||
function Button(x,y: integer; Txt: string): ButtonT;
|
||||
function TextLabel(Txt: string; fontsize: real := 12): TextLabelT;
|
||||
function TextLabel(x,y: real; Txt: string; fontsize: real := 12): TextLabelT;
|
||||
function IntegerLabel(message: string; fontsize: real := 12; initValue: integer := 0): IntegerLabelT;
|
||||
function RealLabel(message: string; fontsize: real := 12; initValue: real := 0): RealLabelT;
|
||||
function Button(Txt: string; fontSize: real := 12): ButtonT;
|
||||
function Button(x, y: integer; Txt: string; fontSize: real := 12): ButtonT;
|
||||
function TextBlock(Txt: string; fontSize: real := 12): TextBlockT;
|
||||
function TextBlock(x, y: real; Txt: string; fontSize: real := 12): TextBlockT;
|
||||
function IntegerBlock(message: string; fontSize: real := 12; initValue: integer := 0): IntegerBlockT;
|
||||
function RealBlock(message: string; fontSize: real := 12; initValue: real := 0): RealBlockT;
|
||||
function TextBox(Txt: string := ''; w: real := 0): TextBoxT;
|
||||
function ListBox(w: real := 0; h: real := 200): ListBoxT;
|
||||
function IntegerBox(w: real := 0): IntegerBoxT;
|
||||
|
|
@ -398,8 +419,11 @@ begin
|
|||
end;
|
||||
|
||||
procedure AddRightPanel(Width: real; c: Color; Margin: real) := Invoke(AddPanel, RightPanel, Width, Dock.Right, c, Margin);
|
||||
|
||||
procedure AddLeftPanel(Width: real; c: Color; Margin: real) := Invoke(AddPanel, LeftPanel, Width, Dock.Left, c, Margin);
|
||||
|
||||
procedure AddTopPanel(Height: real; c: Color; Margin: real) := Invoke(AddPanel, TopPanel, Height, Dock.Top, c, Margin);
|
||||
|
||||
procedure AddBottomPanel(Height: real; c: Color; Margin: real) := Invoke(AddPanel, BottomPanel, Height, Dock.Bottom, c, Margin);
|
||||
|
||||
procedure AddStatusBarP(Height: real);
|
||||
|
|
@ -419,22 +443,32 @@ begin
|
|||
sbi.Content := '222';
|
||||
sb.Items.Add(sbi);}
|
||||
end;
|
||||
|
||||
procedure AddStatusBar(Height: real) := Invoke(AddStatusBarP, Height);
|
||||
|
||||
function Button(Txt: string): ButtonT := ButtonT.Create(Txt);
|
||||
function Button(x,y: integer; Txt: string): ButtonT := ButtonT.Create(x,y,Txt);
|
||||
function TextLabel(Txt: string; fontsize: real): TextLabelT := TextLabelT.Create(Txt,fontsize);
|
||||
function TextLabel(x,y: real; Txt: string; fontsize: real): TextLabelT := TextLabelT.Create(x,y,Txt,fontsize);
|
||||
function IntegerLabel(message: string; fontsize: real; initValue: integer): IntegerLabelT := IntegerLabelT.Create(message,fontsize,initValue);
|
||||
function RealLabel(message: string; fontsize: real; initValue: real): RealLabelT := RealLabelT.Create(message,fontsize,initValue);
|
||||
function Button(Txt: string; fontSize: real): ButtonT := ButtonT.Create(Txt,fontSize);
|
||||
|
||||
function Button(x, y: integer; Txt: string; fontSize: real): ButtonT := ButtonT.Create(x, y, Txt,fontSize);
|
||||
|
||||
function TextBlock(Txt: string; fontsize: real): TextBlockT := TextBlockT.Create(Txt, fontsize);
|
||||
|
||||
function TextBlock(x, y: real; Txt: string; fontsize: real): TextBlockT := TextBlockT.Create(x, y, Txt, fontsize);
|
||||
|
||||
function IntegerBlock(message: string; fontsize: real; initValue: integer): IntegerBlockT := IntegerBlockT.Create(message, fontsize, initValue);
|
||||
|
||||
function RealBlock(message: string; fontsize: real; initValue: real): RealBlockT := RealBlockT.Create(message, fontsize, initValue);
|
||||
|
||||
function TextBox(Txt: string; w: real): TextBoxT := TextBoxT.Create(Txt, w);
|
||||
|
||||
function ListBox(w, h: real): ListBoxT := ListBoxT.Create(w, h);
|
||||
|
||||
function IntegerBox(w: real): IntegerBoxT := IntegerBoxT.Create(w);
|
||||
|
||||
function Slider(min, max, val: real): SliderT := SliderT.Create(min, max, val);
|
||||
|
||||
procedure EmptyBlock(sz: integer);
|
||||
begin
|
||||
var e := TextLabel('');
|
||||
var e := TextBlock('');
|
||||
e.Height := sz;
|
||||
e.Width := sz;
|
||||
end;
|
||||
|
|
|
|||
Loading…
Reference in a new issue