Download Bellcore MGR Window Manager

Transcript
such as: m_push( P_MENU|P_EVENT) which will save all events, and
menus but leave everything else alone. All stack modes that require client
download data revert to their default settings when they are pushed. For
example, after m_push( P_MENU|P_EVENT|P_MOUSE) is called, no
events or menus are currently defined, but the mouse remains where it
is. The defined constant P_ALL refers to all of the modes.
m_pushsave( mode)
Certain parts (stack modes) of the current window environment may be
copied to a stack, to be restored at a later time with m_pop()or m_popall().
The macro m_pushsave() differs from m_push()in that downloaded data,
such as menus events or scratchpad bitmaps are copied to the stack instead
of moved, and thus remain in effect after the call to m_pushsave(). The
current window context is thus unaffected. Any combination of the
following pieces of the window environment may be copied to the
window stack.
P_BITMAP
All currently defined scratchpad bitmaps are copied to the stack.
P_CURSOR
The current character and graphics cursor positions are saved on the stack.
P_EVENT
All currently defined events are copied to the stack.
P_FLAGS
The window modes, as set with m_setmode(), are copied to the stack.
P_FONT
The current font setting is copied to the stack. If this font is subsequently
deleted, by writing over it with a different font, the original font setting
is retained, even if it can no longer be accessed using m_font().
P_MENU
All downloaded menus and menu links are copied to the the stack along
with the currently selected menu number.
P_MOUSE
The mouse cursor location is saved on the stack.
P_POSITION
The window size and location are saved on the stack.
P_TEXT
The text region location and size are saved on the stack.
P_WINDOW
The current image contents of the window is copied to the stack. Stack
modes are combined by or-ing them together to form a saved window
context, such as: m_push( P_MENU|P_EVENT) which will save all
events, and menus but leave everything else alone.
7-26 mgr windows
MGR - C Language Application Interface