Page 1 of 1

Lock "filename" column while scrolling horizon

Posted: 2017-03-21, 07:54 UTC
by mantis4d

Posted: 2017-03-21, 08:17 UTC
by ghisler(Author)
Nice idea - but I don't think that it's possible with the used listbox control: When you scroll sideways, the control itself moves the visible text to the left, and requests drawing only for the part on the right which is new.

I could try to write my own Listbox control, but then it wouldn't work any more for blind/viewing impaired people...

Posted: 2017-03-21, 08:36 UTC
by Horst.Epp
ghisler(Author) wrote:Nice idea - but I don't think that it's possible with the used listbox control: When you scroll sideways, the control itself moves the visible text to the left, and requests drawing only for the part on the right which is new.

I could try to write my own Listbox control, but then it wouldn't work any more for blind/viewing impaired people...
So you can make it an very useful option

Posted: 2017-03-21, 09:15 UTC
by Lefteous
Indeed a nice idea - though not new...

Why not use two listbox controls? So the left listbox would contain the fixed column(s) and the right one the scrollable part. A technical challenge could be the vertical scrollbars. For the left listbox the scrollbar would have to be hidden. The right listbox would have to scroll the left listbox as well when scrolled. Maybe this is trivial - I have not tested it.

Something like this:
http://lefteous.totalcmd.net/tc/ideas/fixed_columns_v1/start_c_1.html

It would also be possible to use a dedicated scrollbar control that is not part of the listboxes. This way it could be displayed in full width.
http://lefteous.totalcmd.net/tc/ideas/fixed_columns_v2/start_c_1.html

Posted: 2017-03-21, 18:57 UTC
by petermad
Support+++ as an option