Component: GLCD Textfield (Graphical Library): Difference between revisions
Appearance
No edit summary |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 85: | Line 85: | ||
===Clear=== | ===Clear=== | ||
{| 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" | '''Clear''' | ||
|- | |- | ||
| colspan="2" | Clears all text from the display | | colspan="2" | Clears all text from the display | ||
| Line 99: | Line 99: | ||
===ClearLine=== | ===ClearLine=== | ||
{| 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" | '''ClearLine''' | ||
|- | |- | ||
| colspan="2" | Clears a single line of text from the display | | colspan="2" | Clears a single line of text from the display | ||
| Line 118: | Line 118: | ||
===ClearLineRemainder=== | ===ClearLineRemainder=== | ||
{| 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" | '''ClearLineRemainder''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 132: | Line 132: | ||
===Cursor=== | ===Cursor=== | ||
{| 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" | '''Cursor''' | ||
|- | |- | ||
| colspan="2" | Moves the current pixel position of the cursor within the coordinate space | | colspan="2" | Moves the current pixel position of the cursor within the coordinate space | ||
| Line 156: | Line 156: | ||
===GetCursorPosition=== | ===GetCursorPosition=== | ||
{| 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" | '''GetCursorPosition''' | ||
|- | |- | ||
| colspan="2" | Gets the current pixel position of the cursor within the coordinate space | | colspan="2" | Gets the current pixel position of the cursor within the coordinate space | ||
| Line 175: | Line 175: | ||
===PrintASCII=== | ===PrintASCII=== | ||
{| 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" | '''PrintASCII''' | ||
|- | |- | ||
| colspan="2" | Prints a single ASCII character to the display | | colspan="2" | Prints a single ASCII character to the display | ||
| Line 194: | Line 194: | ||
===PrintFormattedNumber=== | ===PrintFormattedNumber=== | ||
{| 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" | '''PrintFormattedNumber''' | ||
|- | |- | ||
| colspan="2" | Will allow you to print a number up to 32-bits with signed or unsigned formatting. Signed = -2147483648 to 2147483647 Unsigned = 0 to 4294967295 | | colspan="2" | Will allow you to print a number up to 32-bits with signed or unsigned formatting. Signed = -2147483648 to 2147483647 Unsigned = 0 to 4294967295 | ||
| Line 218: | Line 218: | ||
===PrintNumber=== | ===PrintNumber=== | ||
{| 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" | '''PrintNumber''' | ||
|- | |- | ||
| colspan="2" | Prints a number to the display as an ASCII string | | colspan="2" | Prints a number to the display as an ASCII string | ||
| Line 237: | Line 237: | ||
===PrintString=== | ===PrintString=== | ||
{| 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" | '''PrintString''' | ||
|- | |- | ||
| colspan="2" | Prints a string of ASCII characters to the display | | colspan="2" | Prints a string of ASCII characters to the display | ||
| Line 257: | Line 257: | ||
==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''' | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:22, 13 July 2026
| Author | Matrix TSL |
| Version | 1.2 |
| Category | Graphical Library |
GLCD Textfield component
A component to simplify the process of drawing text to a graphical display. Allows the graphical LCD to be used more like a standard alphanumeric display. Compatible with the Graphical LCDs.
Detailed description
No detailed description exists yet for this component
Examples
Example program showing how to use the component with a graphical display.
Macro reference
Clear
| Clear | |
| Clears all text from the display | |
| Return | |
ClearLine
| ClearLine | |
| Clears a single line of text from the display | |
| Line | |
| Line to clear. Range 0 to CharacterHeight - 1 | |
| Return | |
ClearLineRemainder
| ClearLineRemainder | |
| Return | |
Cursor
GetCursorPosition
| GetCursorPosition | |
| Gets the current pixel position of the cursor within the coordinate space | |
| Axis | |
| 0=X, 1=Y | |
| Return | |
PrintASCII
| PrintASCII | |
| Prints a single ASCII character to the display | |
| Character | |
| Holds an ASCII value e.g. 'A' | |
| Return | |
PrintFormattedNumber
PrintNumber
| PrintNumber | |
| Prints a number to the display as an ASCII string | |
| Number | |
| Enter the number or variable to print to the display | |
| Return | |
PrintString
| PrintString | |
| Prints a string of ASCII characters to the display | |
| Text | |
| Enter the text or variable to print to the display | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Lib_GLCD_Textfield.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Lib_GLCD_Textfield.fcfx