Back

SelectGadget()




    USAGE

    void SelectGadget(Window, GadgetID, On)

    FUNCTION

    Depending on the Boolen 'On', this either selects the gadget or deselects it. This is for Gadgets that have their TOGGLESELECT flags set. The Gadget is defined by its GadgetID number. If the Gadget is found in the Gadget list of the window, its GADGDISABLED bit is either set or cleared. The Gadget is redisplayed.

    INPUTS

    Window Pointer to the window the gadget resides in.
    GadgetID Short integer ID of the requested gadget.
    On Boolen flag,
    • TRUE to select this gadget,
    • FALSE to deselect it.

    RESULT

    none (void)

    SEE ALSO

    EnableGadget