[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CONST, TYPE, VAR

     The following are globally declared in the KeyTTT5 unit:

     TYPE
        BUTTON = (NOB, LEFTB, RIGHTB, BOTHB);
        KEY_IDLE_TYPE = PROCEDURE;  {VERSION 5.0 ONLY}
        KEY_PRESSED_TYPE = PROCEDURE(VAR CH : CHAR); {VER 5.0 ONLY}
        KEY_HOOKS = RECORD
                         IDLE_HOOK:    KEY_IDLE_TYPE;
                         PRESSED_HOOK: KEY_PRESSED_TYPE;
                         CLICK:  BOOLEAN;
                    END;
     VAR
        MOUSED : BOOLEAN;
        HORIZ_SENSITIVITY : INTEGER;
        KTTT : KEY_HOOKS;
        IDLE_HOOK    : POINTER; {VER 4.0 ONLY}
        PRESSED_HOOK : POINTER; {VER 4.0 ONLY}

     Listed below are the declarations that the Toolkit user should
     understand:

     Button - this type is used in the procedure Get_Mouse_Action and
     indicates the mouse button activity. The possible values are NoB for
     no button, LeftB for left button, RightB for right button and BothB
     for both buttons.

     Moused - this boolean is set to true if a mouse is detected. It is
     legal to set this variable to false if you want to disable the Toolkit
     mouse support on systems equipped with a mouse.

     Horiz_Sensitivity - this integer variable is used to determine the
     horizontal sensitivity (or lateral mouse speed) of the mouse. The
     default value is one. Increase the value to decrease (ugh?) the
     sensitivity; typical values range from 1 to 4.

     In addition to the TYPE and VAR declarations discussed above, there is
     also a significant CONST declaration in the unit. Every possible key
     combination that the Toolkit can detect has been assigned a constant.
     Refer to the Misc. help section for a list of the keypressed constants.

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson