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

From Planimate Knowledge Base
Jump to navigation Jump to search
(Importing text file)
 
No edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<font face="Arial">The system broadcast '''<font face="Arial">_link clicked</font>'''<font face="Arial">) 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'''".  


This suppresses the normal link information menu.


The broadcast includes the following attributes:which will set the corresponding item attributes if they exist for the class:<br /><br /><font face="Courier New"> _x,_y : The screen co-ordinate clicked<br /> _ratio : The ratio along the line where the user clicked, from near<br /> 0 (start of) approatching 1 (end of link)<br /> _from : Object label identifier of the "from" portal for the link<br /> _to : Object label identifier of the "to" portal for the link<br /> _buttons : which button was clicked, 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:


</font></font></font>
;_x,_y
----
 
[[Category:Spatial Network]]
:The panel screen co-ordinate at which the mouse was clicked.
[[Category:Object/SpatialLink]]
 
[[Category:Interaction (User)]]
;_ratio
[[Category:Broadcast/System]]
 
[[Category:Release Note]]
:The ratio along the spatial link line where the user clicked, from near 0 (start of) approaching 1 (end of link)
<font size="2">idkbase note 99</font>
 
;_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