Results 1 to 4 of 4

Thread: OnClick

  1. #1
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default OnClick

    SCAR Code:
    Button1.OnClick := ;

    How do i make that do a procedure?
    I tried

    SCAR Code:
    Button1.OnClick := @Procedure;

    and,

    SCAR Code:
    Button1.OnClick := Procedure;

    Anyway possible?

  2. #2
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by Junkj View Post
    SCAR Code:
    Button1.OnClick := ;

    How do i make that do a procedure?
    I tried

    SCAR Code:
    Button1.OnClick := @Procedure;

    and,

    SCAR Code:
    Button1.OnClick := Procedure;

    Anyway possible?
    the procedure needs a sender

    SCAR Code:
    procedure wat(sender: TObject);
    begin
      writeln('wat');
    end;

    //w/e you need for the form
    button1.onclick := @wat;
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  3. #3
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks Awkward.

  4. #4
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by Junkj View Post
    Thanks Awkward.
    mhm
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

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
  •