SCAR Code:BitBtn1.OnClick := (I want it to close the form, and load the next procedure, aka start the real script);
What goes after onclick := ??
The form looks like this (ATM):
![]()
SCAR Code:BitBtn1.OnClick := (I want it to close the form, and load the next procedure, aka start the real script);
What goes after onclick := ??
The form looks like this (ATM):
![]()
Have a procedure which does everything which is need to run Tutorial Island, then do for the form procedures, then do:
SCAR Code:BitBtn1.OnClick:= @Everything; //Everything is the name of the procedure which does everything
Richard.
Last edited by Rich; 10-10-2009 at 09:28 PM.
<3
Originally Posted by Eminem
To do this you should have a procedure called ButtonClicked(Sender : TObject);
and then you would do
BitBtn1.OnClick := @ButtonClicked;and the procedure would look something like this:
Keep in mind that I did not use SCAR to make that procedure so it might not work as you would want it to...SCAR Code:procedure ButtonClicked(Sender :TObject);
begin
case Sender of
BitBtn1: FORMNAME.ModalResult := mrOk;
end;
end;
In your .OnClick you will need to save all of your player info also.
@zyt3x, oh now I understand, that is to close it. Thanks for your help.
@mormonman, oh wow I almost forgot! That is easy though.
I've solved the problem, I was using the wrong button!![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)