Results 1 to 3 of 3

Thread: help using forms

  1. #1
    Join Date
    Jan 2007
    Location
    BC, Canada
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default help using forms

    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.

  2. #2
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    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 |

  3. #3
    Join Date
    Jan 2007
    Location
    BC, Canada
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •