+1 888 340 6572

MC Text GetActive: Difference between revisions

From MultiCharts
No edit summary
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Returns a numerical value indicating the text ID number of the currently selected text; returns a value of -1 if no text is currently selected.  
Returns a numerical value indicating the text ID number of the currently selected text.


==== Usage ====
MC_Text_GetActive returns a value of -1 if no text is currently selected.
 
== Usage ==
<syntaxhighlight>MC_Text_GetActive</syntaxhighlight>  
<syntaxhighlight>MC_Text_GetActive</syntaxhighlight>  
   
   
==== Example ====
== Example ==
Assign a value, indicating the text ID number of the currently selected text, to Value1 variable: <syntaxhighlight>Value1 = MC_Text_GetActive;</syntaxhighlight>  
Assign a value, indicating the text ID number of the currently selected text, to Value1 variable:  
 
<syntaxhighlight>Value1 = MC_Text_GetActive;</syntaxhighlight>  
 
At this link, there is a 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:Text Drawing]]
[[Category:Text Drawing]]

Latest revision as of 15:06, 26 May 2017

Returns a numerical value indicating the text ID number of the currently selected text.

MC_Text_GetActive returns a value of -1 if no text is currently selected.

Usage

MC_Text_GetActive

Example

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

Value1 = MC_Text_GetActive;

At this link, there is a 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