qck.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
MouseDown, MouseUp Events
  ◄Summary►  ◄Details►  ◄Example►                ◄Contents►  ◄Index►  ◄Back►
──────────────────────────────────────────────────────────────────────────────
 Occurs when the user presses a mouse button (MouseDown) or releases a mouse
 button (MouseUp).
 
    SUB Form_{MouseDown | MouseUp} (Button AS INTEGER, Shift AS INTEGER,
                                    X AS SINGLE, Y AS SINGLE)
    SUB ctlname_{MouseDown | MouseUp} ([Index AS INTEGER,] Button AS INTEGER,
                                        Shift AS INTEGER, X AS SINGLE,
                                        Y AS SINGLE)
 
    ■ Index     Uniquely identifies a control in a control array.
 
    ■ Button    Button that was pressed (MouseDown) or released (MouseUp) to
                cause the event. The Button argument is a bit field with
                bits corresponding to the left button (bit 0) and right
                button (bit 1) ─ values 1, and 2, respectively. Only one of
                the bits is set, indicating which button caused the event.
 
    ■ Shift     State of the Shift, Ctrl, and Alt keys when the button
                specified in the Button argument is pressed or released. A
                bit is set if the key is down. The Shift argument is a bit
                field, with the least-significant bits corresponding to the
                Shift key (bit 0), the Ctrl key (bit 1), and the Alt key
                (bit 2 ). These bits correspond to the values 1, 2, and 4,
                respectively. Some, all, or none of the bits can be set,
                indicating that some, all, or none of the keys is pressed.
 
    ■ X, Y      Current location of the mouse pointer, relative to the
                control that has captured the mouse.
 
 Applies To
    ◄Directory List Box►               ◄File List Box Control►
    ◄Form►                             ◄Label Control►
    ◄List Box Control►                 ◄Picture Box Control►
 
 See Also
    ◄Button and Shift Arguments►       ◄Click Event►
    ◄Creating a Control Array►         ◄DblClick Event►
    ◄MouseMove Event►                  ◄ScaleHeight Property►
    ◄ScaleWidth Property►