TTreeView's
ScrollBar does not accept VCL themes when mirroring the Treeview by this code:
procedure SetWinControlBiDi(Control: TWinControl);
const
WS_EX_NOINHERITLAYOUT = $00100000;
WS_EX_LAYOUTRTL = $00400000;
var
ExStyle: Longint;
begin
ExStyle := GetWindowLong(Control.Handle, GWL_EXSTYLE);
SetWindowLong(Control.Handle, GWL_EXSTYLE, ExStyle or WS_EX_RTLREADING or WS_EX_RIGHT
or WS_EX_LAYOUTRTL or WS_EX_NOINHERITLAYOUT );
end;
procedure TForm2.FormCreate(Sender: TObject);
begin
SetWinControlBiDi(TreeView1);
end;
Sample image:
what should I do?
pls help me...
This is an issue in the TScrollingStyleHook
style hook, you should report this to Embarcadero. Meanwhile you can use the Vcl Styles Utils
project to fix this.
Only you need follow the installation instructions and then add the Vcl.Styles.Hooks
unit to your project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With