Board index » delphi » Disabling Listview Horz Scroll?

Disabling Listview Horz Scroll?

Does anyone know a way to disable horizontal scrolling in a listview?  I
have sized the columns appropriately, but it depends on the width of the
user's scroll bars.  TIA,

Dan English
dan.engl...@home.com

 

Re:Disabling Listview Horz Scroll?


Quote
> Does anyone know a way to disable horizontal scrolling in a listview?  I
> have sized the columns appropriately, but it depends on the width of the
> user's scroll bars.  TIA,

Dan,

derive a new control from TListview, give it a handler for WM_HSCROLL and
do not call inherited in this handler. Instead set msg.result := 0;

Peter Below (TeamB)  100113.1...@compuserve.com)
No e-mail responses, please, unless explicitly requested!

Other Threads