Get Text Length - Status Bar SENDMSG() Function 22

Syntax

SBTEXT$=SENDMSG(sysgui,id,22,segment_index,$${,context{,ERR=lineref}})

Description

This function returns a templated string that contains a specified status bar segment's text style and length.

Parameter

Description

sysgui

SYSGUI channel.

id

Status bar control ID.

22

Number of this SENDMSG() function.

segment_index

Index of segment to retrieve the text from. If this value is greater than the number of segments, an invalid parameter error will be generated.

$$

Always null.

Returned String Template

dispattr:U(2),len:U(2)

Field

Description

dispattr

Text style.

$01$ Prevents a border from being drawn around the segment.

$02$ Draws text with a border to appear higher than the plane of the window.

$04$ Displays text from right-to-left for use in Hebrew or Arabic systems.

len

Text length.

See the descriptions above for "No Border", "Pop Out", and "Right to Left" for the specific values possible in this field.