bengore
asked on
Hide horizontal scrollbar in a TListView
How to hide the (optional)horizontal scrollbar in a TListView?
ASKER
I don't want to make a new component. Is there no possibility to make the changes in the FormCreate procedure like:
SetWindowsStyle(Listbox.Ha ndle, TVS_NOSCROLL) or some other Windows API function?
SetWindowsStyle(Listbox.Ha
Hi bengore,
no its not possible. The Listview manage the Scrollbars and will show them automaticly.
I hope some other Experts here can help you.
Best Regards
Cesario
no its not possible. The Listview manage the Scrollbars and will show them automaticly.
I hope some other Experts here can help you.
Best Regards
Cesario
try this:
ShowScrollBar(MyListView.H andle, SB_HORZ, False);
ShowScrollBar(MyListView.H
Hi TOndrej,
it works but if you scroll down the Scrollbar appears again. ( that is window :-) )
Cesario
it works but if you scroll down the Scrollbar appears again. ( that is window :-) )
Cesario
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Cool solution :_)))
Cesario
Cesario
AFAIK, you can hide both scrollbar.
Derive a new control from TTreeview and override its CreateParams method like this:
procedure tNoScrollbarsTreeview.crea
begin
inherited;
params.style := params.style or TVS_NOSCROLL;
end;
Best Regards
Cesario