I am programming tlistview to display its columns from right to left (to correctly display Hebrew text). I use the following code in the create method of the form, where 'lv' is a listview
SetWindowLong (lv.Handle, GWL_EXSTYLE,
GetWindowLong(lv.Handle, GWL_EXSTYLE) or
WS_EX_LAYOUTRTL or WS_EX_NOINHERITLAYOUT);
lv.invalidate;
As long as this code displays the lines in the list correctly, the title bar displays from left to right! The columns do not match and the header for each column is incorrect.
Does anyone have an idea how to display the title bar from right to left?
I am using Delphi 7, and not that it should make a big difference.
TIA, No'am
source
share