Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Proposal: add WhenScroll to ArrayCtrl
Proposal: add WhenScroll to ArrayCtrl [message #26014] |
Thu, 25 March 2010 22:11 |
Mindtraveller
Messages: 917 Registered: August 2007 Location: Russia, Moscow rgn.
|
Experienced Contributor |
|
|
Helped me a much in the recent project (STermPro). Sometimes you need custom actions on scroll position change (i.e. some intellectual redrawing and cells drawing cache update).
+ ArrayCtrl.h @ 331
+ ArrayCtrl.cpp @ 854
[Updated on: Thu, 25 March 2010 22:18] Report message to a moderator
|
|
|
|
|
Re: Proposal: add WhenScroll to ArrayCtrl [message #26203 is a reply to message #26124] |
Mon, 12 April 2010 16:47 |
Mindtraveller
Messages: 917 Registered: August 2007 Location: Russia, Moscow rgn.
|
Experienced Contributor |
|
|
OK. Have you seen my STermPro app? It has ArrayGrid with some custom drawing behaviour. I mean, if your record is very large ("tall") and it covers multimple "screens", it is convenient to have some "summary" information even if the main part of record is scrolled many screens up. So, each time user scrolls ArrayCtrl, I draw this summary info inside the visible region of record.
It is ok, but ArrayCtrl has internal drawing cache, which is very clever, of course. But I need to update some parts of this cache each time user scrolls ArrayCtrl, because what I draw inside these grids actually depends on scroll bar position. That is why I need WhenScroll event.
|
|
|
|
|
Goto Forum:
Current Time: Fri Mar 29 14:16:05 CET 2024
Total time taken to generate the page: 0.01083 seconds
|