EVT_LIST_COL_CLICK and Connect Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
bojkar
Earned a small fee
Earned a small fee
Posts: 12
Joined: Mon Sep 24, 2007 10:39 am

EVT_LIST_COL_CLICK and Connect

Post by bojkar » Wed Apr 02, 2008 8:11 am

Hello. Can I use EVT_LIST_COL_CLICK with Connect not event table?

Code: Select all

m_listCtrl->Connect( wxEVT_LIST_COL_CLICK, wxListEventHandler( CMyClass:OnList ), NULL, this);
This isn't work.

Please help.

lester
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 211
Joined: Sat Sep 02, 2006 7:24 pm
Location: Ukraine

Re: EVT_LIST_COL_CLICK and Connect

Post by lester » Wed Apr 02, 2008 8:13 am

bojkar wrote:Hello. Can I use EVT_LIST_COL_CLICK with Connect not event table?

Code: Select all

m_listCtrl->Connect( wxEVT_LIST_COL_CLICK, wxListEventHandler( CMyClass:OnList ), NULL, this);
This isn't work.

Please help.
try without NULL, this

bojkar
Earned a small fee
Earned a small fee
Posts: 12
Joined: Mon Sep 24, 2007 10:39 am

Post by bojkar » Wed Apr 02, 2008 8:49 am

not this. 'wxEVT_LIST_COL_CLICK' : undeclared identifier, this is my problem :)

lester
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 211
Joined: Sat Sep 02, 2006 7:24 pm
Location: Ukraine

Post by lester » Wed Apr 02, 2008 9:01 am

wxEVT_COMMAND_LIST_COL_CLICK ?

bojkar
Earned a small fee
Earned a small fee
Posts: 12
Joined: Mon Sep 24, 2007 10:39 am

Post by bojkar » Thu Apr 03, 2008 7:20 am

hehe yes, this work :) Thanks for it.

Post Reply