Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-03

Andrew... remember the scroll problem we worked on for CBT?

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Tony Maro

Well I finally solved it properly.

I wrote my own (or rather hacked on the original) TMControlScrollBar and built a TMScrollingWinControl that uses it.

What I ended up doing was just taking out about 2 lines of code from the original (plus a little other cleanup for me)... the TControlScrollBar refuses to separate itself from the ClientHeight no matter what. I needed a scrolling window control that used the scrollbar separately.

I'm sure the better way would have been to embed a TScrollbar within my control, but every time I tried that it crashed... and the TScrollBar seems to not be responding to messages for some reason.

In the process I also changed the range and position fields to be longint so I can handle more transactions with it. Now I can set the range to be equal to the number of transactions, and set the page size according to (clientheight div rowheight) so the thumb works right.

Tony Maro http://tony.maro.net/ Check out my software "CheckBook Tracker" A GPL (free) replacement for Microsoft Money!

Reply by email