Hi indeed scrolling events from wxTreeListMainWindow do not propagate to the main class wxTreeListCtrl As a workaround if you are in a hurry: modify wxTreeListMainWindow::OnScroll() to get called for those events The functionality ought to be added to the control, would you mind opening a ticket in the feature tracker ? https://sourceforge.net/tracker/?func=add&group_id=51305&atid=462819 Thanks, Ronan
On 05/10/2010 06:24, Yogesh Chaturvedi wrote:
Hi, I am using wxTreeListCtrl and application is to compare two directory that's why i need two wxTreeListCtrl and have synchronization between them when scroll window, mean to say that if directory have long list and need to scroll the control the otherside or second wxTreelistctrl should also move as first is moving. My problem is that i am unable to pick scroll event of wxTreeListCtrl, I have applied handler *wxwidgets:* EVT_SCROLLWIN(MyTreeCtrlEx::OnScroll) void MyTreeCtrlEx:: OnScroll(wxScrollWinEvent& event) { wxMessageBox(_("Scroll Event Fired")); } and apply breakpoint but cursor do not hit breakpoint, After exploring i come to know that wxTreeListCtrl do not generate any event and there is a class wxMainWindow that handle the scroll event and it is a member variable in wxTreeListCtrl class , but i am unable to find out how can i implement the scroll event in my application, it is essential for application. Is is possible to get scroll event. OS : Linux: Ubunto-9 wxTreeListCtrl version : treelistctrl.h,v 1.1 2010-07-01 12:44:54 Yogesh------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2& L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ wxCode-users mailing list wxCode-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxcode-users
------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb
_______________________________________________ wxCode-users mailing list wxCode-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxcode-users