Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
web:contextmenu [2018/11/01 16:59]
agcyphers [Examples]
web:contextmenu [2019/10/23 05:53] (current)
Line 8: Line 8:
 ==== Constants ==== ==== Constants ====
 ^ Name      ^ Type     ^ Value       ^ ^ Name      ^ Type     ^ Value       ^
-| TriggerHover ​| [[http://​developer.xojo.com/​integer|Integer]] | 3 | +| TriggerHover | Integer | 3 | 
-| TriggerLeft ​| [[http://​developer.xojo.com/​integer|Integer]] | 2 | +| TriggerLeft | Integer | 2 | 
-| TriggerNone ​| [[http://​developer.xojo.com/​integer|Integer]] | 0 | +| TriggerNone | Integer | 0 | 
-| TriggerRight ​| [[http://​developer.xojo.com/​integer|Integer]] | 1 |+| TriggerRight | Integer | 1 |
  
 ==== Events ==== ==== Events ====
 ^ Definition ​     ^ Description ​      ^ ^ Definition ​     ^ Description ​      ^
-| MenuAction( menuID as [[http://​developer.xojo.com/​string|String]], itemID as [[http://​developer.xojo.com/​string|String]] ) | Fires when the user selects an item from a displayed menu. | +| MenuAction( menuID as String, itemID as String ) | Fires when the user selects an item from a displayed menu. | 
-| MenuHidden( menuID as [[http://​developer.xojo.com/​string|String]] ) | Fired when the menu is hidden. | +| MenuHidden( menuID as String ) | Fired when the menu is hidden. | 
-| MenuShown( menuID as [[http://​developer.xojo.com/​string|String]] ) | Fires when a menu becomes visible. |+| MenuShown( menuID as String ) | Fires when a menu becomes visible. |
  
 ==== Methods ==== ==== Methods ====
 ^ Definition ​     ^ Description ​      ^ ^ Definition ​     ^ Description ​      ^
 | AddMenu( MenuID as String, theMenu as GraffitiWebContextMenuItem ) | Adds an "​Unattached"​ context menu, which can displayed anywhere and from any control. | | AddMenu( MenuID as String, theMenu as GraffitiWebContextMenuItem ) | Adds an "​Unattached"​ context menu, which can displayed anywhere and from any control. |
-| AddMenu( theControl as [[http://​developer.xojo.com/​webcontrol|WebControl]], MenuID as [[http://​developer.xojo.com/​string|String]], Trigger as [[http://​developer.xojo.com/​integer|Integer]], theMenu as GraffitiWebContextMenuItem ) | Binds a menu to a control. |+| AddMenu( theControl as WebControl, MenuID as String, Trigger as Integer, theMenu as GraffitiWebContextMenuItem ) | Binds a menu to a control. |
 | HideMenu( MenuID as String ) | Hides the menu with the specified ID, if it is currently visible. | | HideMenu( MenuID as String ) | Hides the menu with the specified ID, if it is currently visible. |
-| HideMenu( theControl as [[http://​developer.xojo.com/​webcontrol|WebControl]] ) | Hides the menu for theControl, if it is currently visible. | +| HideMenu( theControl as WebControl ) | Hides the menu for theControl, if it is currently visible. | 
-| ShowMenu( MenuID as String, X as [[http://​developer.xojo.com/​integer|Integer]] = -1, Y as [[http://​developer.xojo.com/​integer|Integer]] = -1 ) | Shows the menu with the specified ID, at the specified coordinates. ​ If both are -1, will show at cursor. | +| ShowMenu( MenuID as String, X as Integer = -1, Y as Integer = -1 ) | Shows the menu with the specified ID, at the specified coordinates. ​ If both are -1, will show at cursor. | 
-| ShowMenu( theControl as [[http://​developer.xojo.com/​webcontrol|WebControl]], X as [[http://​developer.xojo.com/​integer|Integer]] = -1, Y as [[http://​developer.xojo.com/​integer|Integer]] = -1 ) | Shows the menu for theControl, at the specified coordinates. ​ If both are -1, will show at cursor. | +| ShowMenu( theControl as WebControl, X as Integer = -1, Y as Integer = -1 ) | Shows the menu for theControl, at the specified coordinates. ​ If both are -1, will show at cursor. | 
-| Unbind( theControl as [[http://​developer.xojo.com/​webcontrol|WebControl]] ) | Removes the menu from the specified WebControl |+| Unbind( theControl as WebControl ) | Removes the menu from the specified WebControl |
  
 ==== Properties ==== ==== Properties ====