SRL Archive - MSI Archives

Form


Death12652

2011-05-17 16:35:17

I just want to know who made the MSI Form. It looks great and I would like to talk to them over MSN on making my own. There are know good tutorials to making one. Also I suggest that whoever made it should make a tutorial. That is if they have time, anyway I just want to talk to them about helping me make a form for my script. This is the thing I have yet to dabble into in scripting.

Shuttleu

2011-05-17 17:05:52

the MSI form was made by multiple people, just like MSI

also i have made a form, have a look at my Vine Vanquisher for a example, you can easily add pictures and other stuff if you want

~shut

Coh3n

2011-05-17 17:14:54

These two tutorials are what got me started with Forms. If you're looking for the image buttons like the MSI form, take a look at the form in this script. MSI's form was originally based off that form.

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

Hope that helps. :) Feel free to PM me if you need help.

i luffs yeww

2011-05-17 17:29:41

I couldn't find that whole long thread with you, ReadySteadyGo, and Dan Cardin talking about the form. Is it still anywhere? I thought it was a fantastic way to show the progress/why things are how they are. :3

Coh3n

2011-05-17 17:32:59

From: i luffs yeww
I couldn't find that whole long thread with you, ReadySteadyGo, and Dan Cardin talking about the form. Is it still anywhere? I thought it was a fantastic way to show the progress/why things are how they are. :3

This one?

http://villavu.com/forum/showthread.php?t=56428&highlight=Form

i luffs yeww

2011-05-17 17:33:44

yesssss. :3

@OP, that may be a good thread to read through if you're confused about some stuff. Sorta long, but you can usually know what isn't important, probably.

MylesMadness

2011-05-17 21:17:17

Ah, I remember helping ReadySteady with that. Where did he go…

Death12652

2011-05-17 22:55:45

Thanks guys, been trying to create forms and I had it almost down but the switch to simba confused me a little.

Want to add form to a script that I am going to apply to members yet. Still have yet to apply lol. Guess I should get on that huh.

Edit: I don't have the form editor? And I get CreateForm as and Unknown Identifier.

Dan Cardin

2011-05-18 22:01:08

creating the initial form is slightly different with Simba.

Coh3n

2011-05-18 22:07:57

Form template:

program FormTemplate;

var
MainForm: TForm;

procedure Form_Init;
begin
MainForm := TForm.Create(nil);
with MainForm do
begin
Width := 700;
Height := 400;
Caption := 'Main Form';
Position := poScreenCenter;
end;
end;

procedure Form_SafeInit;
var
v: TVariantArray;
begin
SetArrayLength(v, 0);
ThreadSafeCall('Form_Init', v);
end;

procedure Form_ShowModal;
begin
MainForm.ShowModal;
end;

procedure Form_SafeShowModal;
var
v: TVariantArray;
begin
SetArrayLength(v, 0);
ThreadSafeCall('Form_ShowModal', v);
end;

var
i: Integer;
begin
ClearDebug();

try
Form_SafeInit;
Form_SafeShowModal;
except
Writeln(ExceptionToString(ExceptionType, ExceptionParam));
finally
MainForm.Free;
end;
end.

KingKong

2011-05-18 23:25:01

The easiest way to make a form is to use scar's form editor and then use a dtm parser and copy into simba.