Results 1 to 5 of 5

Thread: A list of "most common" TNotifyEvents in SCAR Forms!

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

    Default A list of "most common" Pointer parametres (i.e TNotifyEvents, etc) in SCAR Forms!

    A List of the Most Commonly used Pointers in SCAR Forms
    By Dan's The Man

    Introduction:
    This contains a list of the most commonly used TNotifyEvents when used in a SCAR Form. Most TNotifyEvents may have the same name, or same parameters. It doesn't matter. Please take note, that this tutorial only provides the parameters of each TNotifyEvent, since the procedure name, you will decide

    Why do you need this information?:
    Whenever you use a TNotifyEvent, it can't always be (Sender: TObject) (although the common usage ones are). Each may require more parametres. And if you don't have those parametres, a Type Mismatch will occur. So, that is what this guide is for So you don't have to spend a lot of time figuring them out (which can be hard, trust me).

    It's format is as follows:
    SCAR Code:
    (Sender: TObject; [Whatever here]);
    So you can copy the parameters directly out of this tutorial into your SCAR script

    For a quick reference, i have included a contents on the TObject (i.e TLabel, TEdit, etc )

    Contents:
    • TForm.
    • TLabel.
    • TButton.
    • TBitBtn.
    • TSpeedButton.
    • TComboBox.
    • TEdit.
    • TRichEdit.
    • TMemo.
    • TImage.
    • TShape.
    • TScrollBox.
    • TCheckListBox.
    • TProgressBar.
    • TCheckBox.
    • TRadioButton.
    • TBevel.
    • TTimer.
    • TMainMenu.
    • TPopupMenu.
    • TTabControl.
    • TOpenDialog.
    • TSaveDialog.
    • TFontDialog.
    • TColorDialog.
    • TFindDialog.
    • TReplaceDialog.


    OnActivate, OnClick, OnCreate, OnDblClick, OnDeactivate, OnDestroy, OnHide, OnPaint, OnResize, OnShow:
    SCAR Code:
    (Sender: TObject);

    OnCanResize:
    SCAR Code:
    (Sender: TObject; var NewWidth, NewHeight: Integer; var Resize: Boolean);

    OnClose:
    SCAR Code:
    (Sender: TObject; var Action: TCloseAction);

    OnCloseQuery:
    SCAR Code:
    (Sender: TObject; var CanClose: Boolean);

    OnKeyDown, OnKeyUp:
    SCAR Code:
    (Sender: TObject; var Key: Word; Shift: TShiftState);

    OnKeyPress:
    SCAR Code:
    (Sender: TObject; var Key: Char);

    OnMouseDown, OnMouseUp:
    SCAR Code:
    (Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);

    OnMouseMove:
    SCAR Code:
    (Sender: TObject; Shift: TShiftState; X, Y: Integer);
    Last edited by Daniel; 07-08-2009 at 04:24 PM.
    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 |

  2. #2
    Join Date
    Feb 2006
    Location
    Belgium
    Posts
    3,137
    Mentioned
    3 Post(s)
    Quoted
    5 Post(s)

    Default

    Hmm, these aren't TNotifyEvents... TNotifyEvent is a specific procedure object type... Neither are they pointers... And SCAR has a tool that has all of these definitions...

    (Epic bump)

  3. #3
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Freddy1990 View Post
    Hmm, these aren't TNotifyEvents... TNotifyEvent is a specific procedure object type... Neither are they pointers... And SCAR has a tool that has all of these definitions...

    (Epic bump)
    As Freddy, rightly, said:

    Tools > Event Handlers List

  4. #4
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    Why are LOTS of things TSomethingSomething
    Ce ne sont que des gueux


  5. #5
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Quote Originally Posted by Floor66 View Post
    Why are LOTS of things TSomethingSomething
    Because it stands for Type. It's just a naming convention.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. action="www.site.com" method="post"
    By Jason2gs in forum General
    Replies: 4
    Last Post: 05-17-2007, 11:50 PM
  2. Replies: 3
    Last Post: 04-19-2007, 03:44 AM
  3. Replies: 5
    Last Post: 10-26-2006, 11:30 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
  •