HomeForumSourceResearchGuide
Sign in to contribute to source. how it works
Type definition file ui.ContextMenu by barry
expand copy to clipboardexpand
/*
 {"description" : "A context menu, for example triggered from a right-click. This widget is usually created/used only by the internal logic of a windowing system."}
*/

uses os.KeyState

interface ContextMenu extends XYMouseObject {
	
	/* {"@description" : "This event is fired when a user clicks on an item in the menu."} */
	event menuClick(MenuItem mi)
	
	/* {"@description" : "Instantiate a new menu."} */
	ContextMenu()
	
	/* {"@description" : "Add an item to the menu."} */
	void addItem(store MenuItem item)
	/* {"@description" : "Remove an item from the menu."} */
	void remItem(MenuItem item)
	
	/* {"@description" : "Set the list of menu items."} */
	void setItems(store MenuItem items[])
	
	}
Revision history
To propose a new revision to this entity, use dana source put -ut your/new/version.dn -n ui.ContextMenu -m "reason for update" -u yourUsername
Version 1 (this version) by barry
Notes for this version: Standard Library Initialisation