SetTextControlExStyle

www.progui.co.uk  Top  Previous  Next

SetTextControlExStyle()

Syntax

Success = SetTextControlExStyle(ID.i, Style.l)

Description

Sets the style of a previously created TextControlEx. ID is the Handle or ID of a previously created TextControlEx.

Style.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.

Returns true for success or zero for failure.

 

TextControlEx Index