killmenu
BAP Online Manuals : Library
Reference : Library by Name
: killmenu
Previous: isname
Next: listing
BAP Online Manuals : Library Reference : Library by Name : killmenu
Previous: isname
Next: listing
Previous: isname
Next: listing
6.2.76. killmenu
removes a menu bar from a window
SYNOPSIS
INCLUDE 'winlib' killmenu(Win)
SYNTAX
killmenu(Win) (i)
ARGUMENTS
integer(Win) (i) Handle of the parent window.
DESCRIPTION
This predicate removes a menu ( menubar ) in the
Simple Window or graphics window referred to by Win. The Handle given is NOT the menu's handle, but the parent window handle.
Note: The exact implementation is host server dependent. Menus are handled similarly on most windows systems, but details may differ.
EXAMPLE
gotowindow(Win), get_my_id(Id), menubar(Win, Id, ['&File'([ 1,0,'&Open' 2,mf_grayed,'&Close', 3,0,'&Print', 0,mf_separator,' ', 4,0,'E&xit']), 30,0,'&Help'],_), rec_msg(_,ret(menu(X))), domenu(X), killmenu(Win).
ERRORS
No runtime errors
LAYERS
prolog-process, client-server, object
RELATED PREDICATES
menubar , gotowindow , servertype
BAP Online Manuals : Library Reference : Library by Name : killmenu
Previous: isname
Next: listing