RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TControl.DrawTextBiDiModeFlags Method

Returns the text flags that reflect the current setting of the BiDiMode property.

Pascal
function DrawTextBiDiModeFlags(Flags: Longint): Longint;
C++
__fastcall Longint DrawTextBiDiModeFlags(Longint Flags);

Call DrawTextBiDiModeFlags to obtain a value for the TextFlags property of a canvas when drawing the control's text or caption. The return value can also be used with the Windows API DrawText function. 

Flags are the current text flags, unaltered by any bi-directional mode considerations. 

DrawTextBiDiModeFlags adds or removes the DT_RIGHT or DT_RTLREADING flags based on the values returned from the UseRightToLeftAlignment and UseRightToLeftReading methods. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!