Difference between revisions of "Arw GetActive"

From MultiCharts
Jump to navigation Jump to search
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Returns a numerical value indicating the '''object ID''' number of the currently selected arrow object.
+
Returns a numerical value indicating the object ID number of the currently active arrow object.
  
Arw_GetActive returns a value of -1 if no arrow objects are currently selected.  
+
Arw_GetActive returns -1 if no arrow objects are currently selected or were added to a chart yet.
 +
If an active arrow drawing object is removed from a chart then Arw_GetActive returns -1.
 +
If an inactive arrow drawing object is removed from a chart then Arw_GetActive returns the object ID number of the currently active arrow object.  
  
 
== Usage ==
 
== Usage ==
Line 18: Line 20:
 
Value1 = Arw_GetActive;  
 
Value1 = Arw_GetActive;  
 
</syntaxhighlight>
 
</syntaxhighlight>
 
At this link, there is an base logic that shows how this command can allow MC to receive interactive user input. You can adapt it to your specific needs. http://www.multicharts.com/discussion/viewtopic.php?f=5&t=7764
 
  
 
[[Category:ArrowDrawing]]
 
[[Category:ArrowDrawing]]

Latest revision as of 14:36, 13 October 2014

Returns a numerical value indicating the object ID number of the currently active arrow object.

Arw_GetActive returns -1 if no arrow objects are currently selected or were added to a chart yet. If an active arrow drawing object is removed from a chart then Arw_GetActive returns -1. If an inactive arrow drawing object is removed from a chart then Arw_GetActive returns the object ID number of the currently active arrow object.

Usage

Arw_GetActive

Notes

Example

Assign a value, indicating the object ID number of the currently selected arrow object, to Value1 variable:

Value1 = Arw_GetActive;