Get Text Message Extent

by index:

\i C ? t word::message_index

Parameter Type Range Description
message_index byte 0 ... max. message_index index of the message stored in the iLCD

by name:

\i C ? t by_name::message_name

Parameter Type Range Description
message_name by_name ASCII chars (0x01 .. 0xFF) 0-terminated message name

Returns the extent of a text message (stored in the iLCD via iLCD Manager XE) when drawn with the current font.

Note

Response: [ACK] word::height word::width [ACK]

Parameter Type Range Description
height word 0 ... display width - 1 width of the text string
width word 0 ... display height - 1 height of the text

Example

\iC?t\D1

Response Example

[ACK][00][51][00][10][ACK]

This response means that the text message stored with index 1 will occupy a space of width = 81 (0x51) pixels, and height = 16 (0x10) pixels with the selected font.

Note

See also:

Get Text Extent