Difference between revisions of "Component: Number Pad (Digital Control )"

From Flowcode Help
Jump to navigationJump to search
Line 17: Line 17:
 
==Component Source Code==
 
==Component Source Code==
  
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_NumberPad.fcsx FC_Comp_Source_NumberPad.fcsx]
+
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_temp/NumberPad.fcsx FC_Comp_Source_temp/NumberPad.fcsx]
  
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_NumberPad.fcsx FC_Comp_Source_NumberPad.fcsx]
+
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_temp/NumberPad.fcsx FC_Comp_Source_temp/NumberPad.fcsx]
  
 
==Detailed description==
 
==Detailed description==
Line 81: Line 81:
  
 
''<span style="color:red;">No additional examples</span>''
 
''<span style="color:red;">No additional examples</span>''
 +
 +
  
  
Line 89: Line 91:
 
==Macro reference==
 
==Macro reference==
  
===GetInputString===
+
===ClearBuffer===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetInputString'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ClearBuffer'''
 
|-
 
|-
| colspan="2" | Gets the contents of the text buffer.&nbsp;
+
| colspan="2" | Erases the contents of the buffer&nbsp;
 
|-
 
|-
 
|-
 
|-
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
+
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="90%" | ClearBuffer
 
|-
 
| colspan="2" | 0=Buffer remains, 1=Buffer is cleared&nbsp;
 
|-
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-string-icon.png]] - STRING
 
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
|}
 
|}
  
  
===GetNumber===
+
===GetFloat===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetNumber'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetFloat'''
 
|-
 
|-
| colspan="2" | Attempts to parse a number from the input string&nbsp;
+
| colspan="2" | Attempts to parse a floating point number from the input string.&nbsp;
 
|-
 
|-
 
|-
 
|-
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
+
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 
| width="90%" | ClearBuffer
 
| width="90%" | ClearBuffer
 
|-
 
|-
 
| colspan="2" | 0=Buffer remains, 1=Buffer is cleared&nbsp;
 
| colspan="2" | 0=Buffer remains, 1=Buffer is cleared&nbsp;
 
|-
 
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s32-icon.png]] - LONG
+
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
|}
 
|}
  
  
===GetFloat===
+
===GetInputString===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetFloat'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetInputString'''
 
|-
 
|-
| colspan="2" | Attempts to parse a floating point number from the input string.&nbsp;
+
| colspan="2" | Gets the contents of the text buffer.&nbsp;
 
|-
 
|-
 
|-
 
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
+
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
 
| width="90%" | ClearBuffer
 
| width="90%" | ClearBuffer
 
|-
 
|-
 
| colspan="2" | 0=Buffer remains, 1=Buffer is cleared&nbsp;
 
| colspan="2" | 0=Buffer remains, 1=Buffer is cleared&nbsp;
 
|-
 
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT
+
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-string-icon.png]] - STRING
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
|}
 
|}
Line 165: Line 162:
  
  
===ClearBuffer===
+
===GetNumber===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ClearBuffer'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetNumber'''
 +
|-
 +
| colspan="2" | Attempts to parse a number from the input string&nbsp;
 +
|-
 
|-
 
|-
| colspan="2" | Erases the contents of the buffer&nbsp;
+
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
 +
| width="90%" | ClearBuffer
 
|-
 
|-
 +
| colspan="2" | 0=Buffer remains, 1=Buffer is cleared&nbsp;
 
|-
 
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
+
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s32-icon.png]] - LONG
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
|}
 
|}

Revision as of 12:02, 3 February 2023

Author Matrix TSL
Version 1.0
Category Digital Control


Number Pad component

A numeric keypad component allowing user to enter numeric data using a mouse, touchscreen or keyboard. Contains a byffer and the ability to automatically call a user macro when data is entered.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_temp/NumberPad.fcsx

Please click here to view the component source code (Beta): FC_Comp_Source_temp/NumberPad.fcsx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples





Macro reference

ClearBuffer

Fc9-comp-macro.png ClearBuffer
Erases the contents of the buffer 
Fc9-void-icon.png - VOID Return


GetFloat

Fc9-comp-macro.png GetFloat
Attempts to parse a floating point number from the input string. 
Fc9-u8-icon.png - BYTE ClearBuffer
0=Buffer remains, 1=Buffer is cleared 
Fc9-f32-icon.png - FLOAT Return


GetInputString

Fc9-comp-macro.png GetInputString
Gets the contents of the text buffer. 
Fc9-bool-icon.png - BOOL ClearBuffer
0=Buffer remains, 1=Buffer is cleared 
Fc9-string-icon.png - STRING Return


GetLastChar

Fc9-comp-macro.png GetLastChar
Gets the last character of the text buffer. 
Fc9-bool-icon.png - BOOL ClearBuffer
0=Buffer remains, 1=Buffer is cleared 
Fc9-u8-icon.png - BYTE Return


GetNumber

Fc9-comp-macro.png GetNumber
Attempts to parse a number from the input string 
Fc9-bool-icon.png - BOOL ClearBuffer
0=Buffer remains, 1=Buffer is cleared 
Fc9-s32-icon.png - LONG Return



Property reference

Fc9-prop-icon.png Properties
Fc9-type-7-icon.png Show Text Buffer
 
Fc9-type-7-icon.png Mouse Input
Checks for mouse clicks on the NumberPad component 
Fc9-type-7-icon.png Keyboard Input
Automatically scans for keyboard presses 
Fc9-type-7-icon.png Call Macro
 
Fc9-type-16-icon.png Theme