LCL, TCheckListBox: Change text direction in accordance with BiDiMode, bug #25450

git-svn-id: trunk@43587 -
This commit is contained in:
maxim 2013-12-24 22:01:07 +00:00
parent 8db86f24e7
commit 8109841ef9

View File

@ -219,7 +219,7 @@ class procedure TWin32WSCustomCheckListBox.DefaultWndHandler(
// draw text
if CheckListBox.UseRightToLeftAlignment then begin
TextRect.Right := TextRect.Right - 2;
TextFlags := DT_SINGLELINE or DT_VCENTER or DT_NOPREFIX or DT_RIGHT;
TextFlags := DT_SINGLELINE or DT_VCENTER or DT_NOPREFIX or DT_RIGHT or DT_RTLREADING;
end
else begin
TextRect.Left := TextRect.Left + 2;