SRL Archive - OSR Help

[Request]Form Tutorial


blazingrobin

2012-04-24 06:16:39

If anyone could create an update form creation tutorial i would be extremely grateful. The only tutorials i have been able to find are on Scar and are very outdated.

Echo_

2012-04-24 09:50:52

Most of SCAR's form functions are exactly the same as Simba's, so most of what is in the SCAR form tutorials is applicable to Simba. Try this tutorial:

http://villavu.com/forum/showthread.php?t=39078

Use this script as a skeleton:


{$i srl/srl.simba}

var
Form: TForm;

procedure InitForm;
begin
Form := TForm.Create(nil);
end;

procedure SafeInitForm;
var
TVA: TVariantArray;
begin
SetLength(TVA, 0);
ThreadSafeCall('InitForm', TVA);
end;

procedure ShowModal;
begin
Form.ShowModal;
end;

procedure SafeShowModal;
var
TVA: TVariantArray;
begin
SetLength(TVA, 0);
ThreadSafeCall('ShowModal', TVA);
end;

begin
SafeInitForm;
SafeShowModal;
end.

blazingrobin

2012-04-24 11:15:26

ok thank you for the help

Paradoxium

2012-04-24 19:34:06

look in this thread The Ultimate Tut Thread, there are about 3 great form tut links in there :D Hope you find what you are looking for!

Blumblebee

2012-04-24 19:37:04

I would also suggest just reading code from other people's forms. It's one of the best ways to understand how they work.

mormonman

2012-04-24 19:38:40

From: Blumblebee
I would also suggest just reading code from other people's forms. It's one of the best ways to understand how they work.


OMGWTFZOARS!! BLUMBLE!!!!!!!!!!!!!!!!! /offtopic