im trying to make a text log using a form. i want the text i enter in the text box to be added to a memo box. sort of like a chat window. ive never used forms in my scripts before and cant seem to figure this one out.
im trying to make a text log using a form. i want the text i enter in the text box to be added to a memo box. sort of like a chat window. ive never used forms in my scripts before and cant seem to figure this one out.
Lookup the TMemo component![]()
You may contact me with any concerns you have.
Are you a victim of harassment? Please notify me or any other staff member.
| SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |
well finally figured it out on my own! if anyone else want to know.
i added this to the form code
Button1.OnClick:= @SendMessage;
and made a procedure.
procedure SendMessage(Sender: TObject);
begin
Memo1.Lines.Add(InputBox);
end;
InputBox : is string i want to add to it.
Last edited by fORCE_wORKS; 10-21-2009 at 09:52 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)