Component: GLCD Textfield (Graphical Library)

From Flowcode Help
Revision as of 21:01, 16 November 2021 by Wiki bot (talk | contribs) (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix TSL |- | width="20%" style="color:gray;" | Version | 1.2 |- | width="20%" style="color:gray...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

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


Downloadable macro reference

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


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


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


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


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


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


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 
[[File:]] - Format
0 = Signed, 1 = Unsigned 
Fc9-void-icon.png - VOID Return


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


Fc9-comp-macro.png SetBackgroundColour
 
Fc9-u8-icon.png - BYTE Pixel_Colour
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png SetForegroundColour
 
Fc9-u8-icon.png - BYTE Pixel_Colour
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png DrawRectangle
 
Fc9-u16-icon.png - UINT X1
 
Fc9-u16-icon.png - UINT Y1
 
Fc9-u16-icon.png - UINT X2
 
Fc9-u16-icon.png - UINT Y2
 
Fc9-u8-icon.png - BYTE Transparent
 
Fc9-u8-icon.png - BYTE Solid
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png SetBackgroundColour
 
Fc9-u8-icon.png - BYTE Red
 
Fc9-u8-icon.png - BYTE Green
 
Fc9-u8-icon.png - BYTE Blue
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png SetForegroundColour
 
Fc9-u8-icon.png - BYTE Red
 
Fc9-u8-icon.png - BYTE Green
 
Fc9-u8-icon.png - BYTE Blue
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png DrawRectangle
 
Fc9-u16-icon.png - UINT X1
 
Fc9-u16-icon.png - UINT Y1
 
Fc9-u16-icon.png - UINT X2
 
Fc9-u16-icon.png - UINT Y2
 
Fc9-u8-icon.png - BYTE Transparent
 
Fc9-u8-icon.png - BYTE Solid
 
Fc9-void-icon.png - VOID Return



Property reference

Fc9-prop-icon.png Properties
Fc9-type-17-icon.png gLCD Object
Graphical LCD Object to draw the bitmap image to 
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 
Fc9-conn-icon.png Connections
Fc9-conn-icon.png Simulations