MHENABLE

Use this routine to enable/disable a window (or control, like a session panel button).

Note: when windows or controls are disabled the ‘look’ of the disabled window or control is managed by the Windows operating system. So, for instance, if you disable a Uniface session panel control it does not go dim, but the button cannot be pushed and a tool tip is not displayed when the mouse passes over it. Please also see the documentation on MHWHIDE.

; disable the REMOCC button

$50="Rem_occ.UPANEL.A Test Application"

perform "_getowhnd"

if ($status < 0) done

$52=0 ; ie: disable

perform "_mhenable"

Notes:

This function is only available under Win32 platforms (ie: Windows 95/98/ME and NT/2000).

$Revision: 1.10 $ $Date: 2011/02/28 02:56:32 $[go to top]