Component: GLCD Textfield (Graphical Library)

From Flowcode Help
Jump to navigationJump to search
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.

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

Detailed description

No detailed description exists yet for this component

Examples

Example program showing how to use the component with a graphical display.

FC6 Icon.png GLCD TextField Example







Macro reference

Clear

Fc9-comp-macro.png Clear
Clears all text from the display 
Fc9-void-icon.png - VOID Return


ClearLine

Fc9-comp-macro.png ClearLine
Clears a single line of text from the display 
Fc9-u8-icon.png - BYTE Line
Line to clear. Range 0 to CharacterHeight - 1 
Fc9-void-icon.png - VOID Return


Cursor

Fc9-comp-macro.png Cursor
Moves the current pixel position of the cursor within the coordinate space 
Fc9-u16-icon.png - UINT X
Sets the pixel position on the X plane, 0 is the left most pixel 
Fc9-u16-icon.png - UINT Y
Sets the pixel position on the Y plane, 0 is the top most pixel 
Fc9-void-icon.png - VOID Return


GetCursorPosition

Fc9-comp-macro.png GetCursorPosition
Gets the current pixel position of the cursor within the coordinate space 
Fc9-u8-icon.png - BYTE Axis
0=X, 1=Y 
Fc9-u16-icon.png - UINT Return


PrintASCII

Fc9-comp-macro.png PrintASCII
Prints a single ASCII character to the display 
Fc9-u8-icon.png - BYTE Character
Holds an ASCII value e.g. 'A' 
Fc9-void-icon.png - VOID Return


PrintFormattedNumber

Fc9-comp-macro.png PrintFormattedNumber
Will allow you to print a number up to 32-bits with signed or unsigned formatting. Signed = -2147483648 to 2147483647 Unsigned = 0 to 4294967295 
Fc9-u32-icon.png - ULONG Number
Enter the number or variable to print to the display 
Fc9-bool-icon.png - BOOL Format
0 = Signed, 1 = Unsigned 
Fc9-void-icon.png - VOID Return


PrintNumber

Fc9-comp-macro.png PrintNumber
Prints a number to the display as an ASCII string 
Fc9-s16-icon.png - INT Number
Enter the number or variable to print to the display 
Fc9-void-icon.png - VOID Return


PrintString

Fc9-comp-macro.png PrintString
Prints a string of ASCII characters to the display 
Fc9-string-icon.png - STRING Text
Enter the text or variable to print to the display 
Fc9-void-icon.png - VOID Return


Property reference

Fc9-prop-icon.png Properties
Fc9-type-16-icon.png LinkTo
 
Fc9-type-16-icon.png Font
Chooses one of the fonts define dby the display component. 
Fc9-type-7-icon.png Entire Display
Specifies if we are using the entire display or a portion of the display 
Fc9-type-7-icon.png Orientation 1/3
Swaps the pixel width and height for orientations 1 and 3. 
Fc9-type-21-icon.png X Coordinate
X coordinate for top left of the text field 
Fc9-type-21-icon.png Y Coordinate
Y coordinate for top left of the text field 
Fc9-type-21-icon.png Pixel Width
Pixel width of selected display 
Fc9-type-21-icon.png Pixel Height
Pixel height of selected display 
Fc9-type-7-icon.png ColourDisplay
Automatically detects if the graphical LCD object is colour or monochrome