GetTextControlExStyle

www.progui.co.uk  Top  Previous  Next

GetTextControlExStyle()

Syntax

StyleFlags.l = GetTextControlExStyle(ID.i)

Description

Returns the style flags of a previously created TextControlEx or zero for failure. ID is the Handle or ID of a previously created TextControlEx.

StyleFlags.l can be any of the following flags: -

Flag

Description

#TCX_BK_FILL

background is a solid fill. see SetTextControlExColour

#TCX_BK_GRADIENT

background is a gradient fill. see SetTextControlExGradient

#TCX_CENTRE

text is centered horizontally

#TCX_RIGHT

text is right aligned

#TCX_VCENTRE

text is centered vertically

#TCX_END_ELLIPSIS

if the end of a line of text does not fit in the specified width/height dimensions, it is truncated and ellipses are added.

#TCX_PATH_ELLIPSIS

If a text line contains backslash ('\', escapecode: '\\') characters in a block (e.g. a file path), #TCX_PATH_ELLIPSIS preserves as much as possible of the text after the last backslash by replacing characters in the middle of the line with ellipses so that the result fits in the specified width/height dimensions.

#TCX_DISABLE_ESCAPECODES

disables processing and rendering of escape codes.

#TCX_IGNORE_COLOR_ESCAPECODE

ignores rendering of colour escape codes, useful for displaying all text as one colour for example, a disabled state.

 

TextControlEx Index