Detecting clicks on spatial links using Link Clicked: Difference between revisions

From Planimate Knowledge Base
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
The [[System Broadcast]] '''_link clicked''' is sent when the user clicks on a spatial link line and the panel option to send spatial link clicks is enabled (suppressing the normal link information menu).
<onlyinclude>
If you want the Spatial Links in a Panel to respond to mouse clicks, first set the Panel Option "'''Send Spatial Link Clicks'''".  


* _from  starting object of link
This suppresses the normal link information menu.
* _to  end object of link
* _x  x point of click
* _y  y point of click
* _ratio  ratio along link, from 0 to 1
* _buttons  button state bits, 1 = left, 2 = right


----
Thereafter, whenever the modeller or user clicks on a spatial link line a system broadcast called "_Link Clicked" gets sent.
</onlyinclude>


<br> The broadcast includes the following tuple attributes:


;_x,_y


:The panel screen co-ordinate at which the mouse was clicked.


<font size="2">idkbase note 99</font>
;_ratio


[[Category:Spatial Network]]
:The ratio along the spatial link line where the user clicked, from near 0 (start of) approaching 1 (end of link)
[[Category:Object/SpatialLink]]
 
[[Category:Interaction (User)]]
;_from
 
:Object label identifier of the "from" portal for the link.
 
;_to
 
:Object label identifier of the "to" portal for the link.
 
;_buttons
 
:Indicates which button was clicked,
 
::Left = 1
 
::Right = 2
 
<br> <br>
 
[[Category:Spatial_Network]] [[Category:Object/SpatialLink]] [[Category:Interaction_(User)]]

Latest revision as of 14:31, 6 March 2009

If you want the Spatial Links in a Panel to respond to mouse clicks, first set the Panel Option "Send Spatial Link Clicks".

This suppresses the normal link information menu.

Thereafter, whenever the modeller or user clicks on a spatial link line a system broadcast called "_Link Clicked" gets sent.



The broadcast includes the following tuple attributes:

_x,_y
The panel screen co-ordinate at which the mouse was clicked.
_ratio
The ratio along the spatial link line where the user clicked, from near 0 (start of) approaching 1 (end of link)
_from
Object label identifier of the "from" portal for the link.
_to
Object label identifier of the "to" portal for the link.
_buttons
Indicates which button was clicked,
Left = 1
Right = 2