Search found 5 matches

by csc81
Tue Feb 03, 2009 9:27 pm
Forum: C++ Development
Topic: Get selected column in virtual wxListCtrl
Replies: 12
Views: 2665

Hm okej, if there is no official way to solve the problem at the moment it at least doesn't feel so bad to make a hack here :wink: Maybe a better way will be provided in future releases of wx...

Thank you very much for your help!
by csc81
Tue Feb 03, 2009 8:35 pm
Forum: C++ Development
Topic: Get selected column in virtual wxListCtrl
Replies: 12
Views: 2665

Hi! Hm, this is strange :? My system is: Linux / wxGTK. 'wx-config --basename --version --libs' returns: 2.8.9 wx_gtk2 -L/home/schmica/Applications//lib -pthread -lwx_gtk2_richtext-2.8 -lwx_gtk2_aui-2.8 -lwx_gtk2_xrc-2.8 -lwx_gtk2_qa-2.8 -lwx_gtk2_html-2.8 -lwx_gtk2_adv-2.8 -lwx_gtk2_core-2.8 -lwx_b...
by csc81
Tue Feb 03, 2009 5:48 pm
Forum: C++ Development
Topic: Get selected column in virtual wxListCtrl
Replies: 12
Views: 2665

Hej! Thanks, that's a cool idea. I tried out your piece of code in my program and it works if there is no horizontal scrollbar in the wxListCtrl. Now, the problem is that event.GetPosition().x only gives the distance from the x-position of the wxListCtrl to the mouse pointers x position. So if someo...
by csc81
Tue Feb 03, 2009 8:44 am
Forum: C++ Development
Topic: Get selected column in virtual wxListCtrl
Replies: 12
Views: 2665

Hi Jim :) Thanks for your quick reply. The links you sent were quite useful and now I understand why it does not work the way I tried. If I got it right, you proposed to get the item first and then the column from the item. I thought about it but have no idea how this can solve my problem. Actually,...
by csc81
Mon Feb 02, 2009 7:44 pm
Forum: C++ Development
Topic: Get selected column in virtual wxListCtrl
Replies: 12
Views: 2665

Get selected column in virtual wxListCtrl

wx-Version: 2.8.9.0 - GTK Hi :) I'm having a virtual wxListCtrl in report mode (wxLC_REPORT and wxLC_VIRTUAL). The list has 5 columns and approximately 1000000 rows. The problem: I would like to get the column number of the item (not the header) the user clicked on. I tried the following code which ...