Results 1 to 4 of 4

Thread: Calling procedures From Senders

  1. #1
    Join Date
    Dec 2006
    Location
    utah
    Posts
    1,427
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default Calling procedures From Senders

    i need to know how to call a procedure
    when holding the mouse and dragging it
    .. please help if you can ????

  2. #2
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Please explain more, I don't get your question.

  3. #3
    Join Date
    Dec 2006
    Location
    utah
    Posts
    1,427
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    ok this is what i mean...
    this should give you a idea....


    SCAR Code:
    var
       main:Form;

    procedure callingproc(Sender:TObject; Somthing goes here.. );
    begin
    writeln('you just Dragged you mouse on MainForm');
    end;

    procedure loadform;
    begin
    Main:= createform;
    Main.SetBounds(100,100,200,200);
    Main.Ondrag:= @callingproc;
    end;

    begin
    loadform;
    end;

  4. #4
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by SKy Scripter View Post
    ok this is what i mean...
    this should give you a idea....


    SCAR Code:
    procedure callingproc(Sender:TObject; Somthing goes here.. );
    why do you need all that stuff in that procedure? all your doing is writing a message into the debug box in that procedure no?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Learn Function Senders
    By SKy Scripter in forum OSR Advanced Scripting Tutorials
    Replies: 11
    Last Post: 10-02-2008, 06:13 PM
  2. Calling procedures
    By eFox in forum OSR Help
    Replies: 2
    Last Post: 10-27-2007, 10:27 AM
  3. Calling Procedures before they are Declared
    By jhildy in forum OSR Help
    Replies: 6
    Last Post: 06-12-2007, 07:15 PM

Posting Permissions

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