Enables or disables a given pop-up menu entry.
FORTRAN (libfgl.a)
void setpup (Int32 pup, Int 32 entry, Int32 mode)
SUBROUTINE SETPUP (pup, entry, mode)
INTEGER*4 pup, entry, mode
The setpup subroutine enables or disables a given pop-up menu entry. Disabled pop-up menu entries are greyed out and cannot be chosen or selected. When an entry is disabled, the dopup subroutine does not return the value of the disabled entry. If the setpup subroutine is used properly, submenus associated with the disabled entry are also not accessible.
Enabled entries operate as normal.
Note: This subroutine cannot be added to a display list.
This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.
/usr/include/gl/gl.h | Contains C language constant and variable type definitions for GL. |
/usr/include/gl/fgl.h | Contains FORTRAN constant and variable type definitions for GL. |
Adding an item to an existing pop-up menu with the addtopup subroutine.
Defining a pop-up menu with the defpup subroutine.
Displaying a pop-up menu with the dopup subroutine.
Allocating and initializing a structure for a new pop-up menu with the newpup subroutine.
AIX Graphics Library Overview and Creating and Managing Pop-Up Menus.