set wxListCtrl selection after it has been populated in the code

Milan Babuskov milanb at panonnet.net
Thu Mar 1 07:48:17 PST 2007


Xu, Ming (NIH/NLM/NCBI) [F] wrote:
> myListCtrl ->SetItemState(0, wxLIST_STATE_SELECTED,
> wxLIST_STATE_SELECTED);
> myListCtrl->Show();

What happens if you call Show() first?

> But unfortunately  the app quits.

Quits or crashes? If it crashes, run in debugger and show us a backtrace.



-- 
Milan Babuskov
http://www.guacosoft.com
http://www.flamerobin.org





More information about the wx-users mailing list