Component: Input Text ( Control): Difference between revisions
Appearance
No edit summary |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 14: | Line 14: | ||
==Input Text component== | ==Input Text component== | ||
Creates a text field that can be highlighted and edited by the user. | Creates a text field that can be highlighted and edited by the user. | ||
==Version information== | ==Version information== | ||
| Line 26: | Line 27: | ||
''No detailed description exists yet for this component'' | ''No detailed description exists yet for this component'' | ||
==Examples== | ==Examples== | ||
===BasicControls example=== | |||
This simple example shows how to sue some basic controls in a Web Developer project. | |||
{{Fcfile|BasicControls.fcweb|BasicControls.fcweb}} | |||
The web app created by this example can be viewed here: [https://www.flowcode.co.uk/example/WebComps/BasicControls.html BasicControls Example] | |||
| Line 36: | Line 42: | ||
===GetFloat=== | ===GetFloat=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetFloat''' | ||
|- | |- | ||
| colspan="2" | Returns the floating point numeric value entered into the text field | | colspan="2" | Returns the floating point numeric value entered into the text field | ||
| Line 50: | Line 56: | ||
===GetText=== | ===GetText=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetText''' | ||
|- | |- | ||
| colspan="2" | Returns the text currently entered into this text field | | colspan="2" | Returns the text currently entered into this text field | ||
| Line 64: | Line 70: | ||
===GetValue=== | ===GetValue=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetValue''' | ||
|- | |- | ||
| colspan="2" | Returns the numeric value entered into the text field | | colspan="2" | Returns the numeric value entered into the text field | ||
| Line 78: | Line 84: | ||
===SetFloat=== | ===SetFloat=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetFloat''' | ||
|- | |- | ||
| colspan="2" | Sets the numeric floating point value displayed in this text field | | colspan="2" | Sets the numeric floating point value displayed in this text field | ||
| Line 97: | Line 103: | ||
===SetText=== | ===SetText=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetText''' | ||
|- | |- | ||
| colspan="2" | Sets the text displayed in this text field | | colspan="2" | Sets the text displayed in this text field | ||
| Line 116: | Line 122: | ||
===SetValue=== | ===SetValue=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetValue''' | ||
|- | |- | ||
| colspan="2" | Sets the numeric value displayed in this text field | | colspan="2" | Sets the numeric value displayed in this text field | ||
| Line 136: | Line 142: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Text | ||
|- | |- | ||
|- | |- | ||
| Line 166: | Line 172: | ||
| colspan="2" | The maximum number of characters | | colspan="2" | The maximum number of characters | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Style | ||
|- | |- | ||
|- | |- | ||
| Line 205: | Line 211: | ||
| colspan="2" | Make the caption text crossed-out | | colspan="2" | Make the caption text crossed-out | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Colour | ||
|- | |- | ||
|- | |- | ||
| Line 219: | Line 225: | ||
| colspan="2" | Specifies the background colour value | | colspan="2" | Specifies the background colour value | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Advanced | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:37, 13 July 2026
| Author | MatrixTSL |
| Version | 1.0 |
| Category | Control |
Input Text component
Creates a text field that can be highlighted and edited by the user.
Version information
Library Version, Component Version, Date, Author, Info 2, 0.1, 27-01-25, BR, Added extra macros to set and get the value 3, 1.0, 14-02-25, ST, Changed generated CSS to ensure disabled control has grey text
Detailed description
No detailed description exists yet for this component
Examples
BasicControls example
This simple example shows how to sue some basic controls in a Web Developer project.
The web app created by this example can be viewed here: BasicControls Example
Macro reference
GetFloat
| GetFloat | |
| Returns the floating point numeric value entered into the text field | |
| Return | |
GetText
| GetText | |
| Returns the text currently entered into this text field | |
| Return | |
GetValue
| GetValue | |
| Returns the numeric value entered into the text field | |
| Return | |
SetFloat
| SetFloat | |
| Sets the numeric floating point value displayed in this text field | |
| Value | |
| float value to set | |
| Return | |
SetText
| SetText | |
| Sets the text displayed in this text field | |
| sText | |
| Text to set | |
| Return | |
SetValue
| SetValue | |
| Sets the numeric value displayed in this text field | |
| Value | |
| integer value to set | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_WEBEXP_InputText.fcsx
Please click here to view the component source code (Beta): FC_Comp_Source_WEBEXP_InputText.fcsx