Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
XmtMenuActivateProcedure(3)Library Functions ManualXmtMenuActivateProcedure(3)

NAME
       XmtMenuActivateProcedure(),  XmtMenuInactivateProcedure()  -  sensitize
       and desensitize menu items depending on the procedures they call.

SYNOPSIS
       #include	<Xmt/Menu.h>

       void XmtMenuActivateProcedure(Widget w, XtCallbackProc proc)

       void XmtMenuInactivateProcedure(Widget w, XtCallbackProc	proc)

ARGUMENTS
       INPUTS

	    w	   An XmtMenu widget whose items are to	be made	 sensitive  or
		   insensitive.

	    proc   A pointer to	the procedure that is to be activated or inac-
		   tivated.

DESCRIPTION
       XmtMenuActivateProcedure() and XmtMenuInactivateProcedure() search  the
       XmtMenu	widget	w  and	any  XmtMenu  pulldown	or pull	right submenus
       attached	to w looking for menu items that invoke	the procedure proc  on
       their callback lists.  XmtMenuInactivateProcedure() makes any such item
       insensitive, and	XmtMenuActivateProcedure() makes any such item	sensi-
       tive again.

       These  procedures  work	by  calling  XmtMenuItemSetSensitivity() which
       means that the sensitivity state	of a menu  item	 is  counted-you  must
       call  XmtMenuActivateProcedure()	 as many times as you have called Xmt-
       MenuInactivateProcedure() for a given procedure in order	 to  re-enable
       menu items that call that procedure.

SEE ALSO
       Chapter 20, Easy	Menu Creation,
       XmtMenu,	XmtMenuGetMenuItem(), XmtMenuItemGetSubmenu(),
       XmtMenuItemGetWidget(), XmtMenuItemSetSensitivity(),
       XmtMenuItemGetState(), XmtMenuItemSetState().

Xmt				  Motif	Tools	   XmtMenuActivateProcedure(3)

NAME | SYNOPSIS | ARGUMENTS | DESCRIPTION | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=XmtMenuActivateProcedure&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help