Back

EnableGadget()




    USAGE

    void EnableGadget(Window, GadgetID, On)

    FUNCTION

    Depending on the Boolean 'On', this either enables the gadget or disables it. The Gadget is defined by its GadgetID number. If the Gadget is found in the Gadget list of the window, its GADGDISABLED bitis 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 Boolean flag,
    • TRUE to enable this Gadget,
    • FALSE to disable it.

    RESULT

    none (void)