mirror of
https://github.com/moparisthebest/Simba
synced 2025-01-30 14:50:18 -05:00
Component creating now seems to work fine in PascalScript!
git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@400 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
parent
464be3215c
commit
6b55f916c1
@ -13,10 +13,10 @@ var
|
||||
begin;
|
||||
TempVar := False;
|
||||
Result := false;
|
||||
MyForm := CreateForm;
|
||||
MyForm := TForm.Create(nil);
|
||||
MyForm.Width := 250;
|
||||
MyForm.Height := 250;
|
||||
AButton := CreateButton(MyForm);
|
||||
AButton := TButton.Create(MyForm);
|
||||
AButton.Parent := MyForm;
|
||||
Abutton.SetBounds(100,100,100,50);
|
||||
AButton.OnClick := @OnClick;
|
||||
|
@ -54,15 +54,6 @@ begin;
|
||||
bmp.Free;
|
||||
end;
|
||||
|
||||
function CreateForm : TForm;
|
||||
begin;
|
||||
result := TForm.Create(nil);
|
||||
end;
|
||||
function CreateButton(Owner : TComponent) : TButton;
|
||||
begin
|
||||
Result := TButton.Create(Owner);
|
||||
end;
|
||||
|
||||
function MinE(a, b: Extended): Extended;
|
||||
begin;
|
||||
result := min(a,b);
|
||||
|
@ -84,8 +84,6 @@ AddFunction(@psWait, 'procedure Sleep(t: integer);');
|
||||
AddFunction(@GetTickCount, 'function GetSystemTime: LongWord;');
|
||||
AddFunction(@GetTickCount, 'function GetTickCount: LongWord;');
|
||||
AddFunction(@GetTimeRunning,'function GetTimeRunning: LongWord;');
|
||||
AddFunction(@CreateForm,'function CreateForm : TForm;');
|
||||
AddFunction(@CreateButton,'function CreateButton(Owner : TComponent) : TButton');
|
||||
AddFunction(@ConvertTime,'procedure ConvertTime(Time : integer; var h,m,s : integer);');
|
||||
AddFunction(@HakunaMatata,'procedure HakunaMatata;');
|
||||
AddFunction(@TerminateScript,'procedure TerminateScript;');
|
||||
|
Loading…
Reference in New Issue
Block a user