backwards wxListCtrl items in wxMac 2.8.0

Kevin Ollivier kevino at theolliviers.com
Mon Dec 18 22:49:09 PST 2006


Hi Alicia,

On Dec 18, 2006, at 11:49 AM, Alicia da Conceicao wrote:

> Greetings:
>
> For some reason, the "wxListCtrl::InsertItem" is adding items in  
> the wrong
> (reverse) order on the wxMac 2.8.0 port, regardless of the  
> numerical index
> value assigned to the item.  Even the "samples/listctrl"  
> application for
> wxWidgets shows the list items in backwards (reverse) order.

I'll double-check this tomorrow, but I think it is not so much an  
issue of it being added backwards, but that the item is not  
automatically sorted when it is added. I took a couple tries at  
getting it to sort when an item is added with no luck. I do intend to  
try again to get this working, but for the moment, this is a  
limitation of the native control.

> In addition, for wxListCtrl on wxMac 2.8.0, the mouse events for  
> wxListEvent
> (such as EVT_LIST_ITEM_RIGHT_CLICK) do not work at all.

Yes, sorry, I received another report about this just the other day.  
I hope to have time to work on a fix in the next few days.

> Any suggestions on any work arounds, patches, etc. to get  
> wxListCtrl to
> work properly on the wxMac 2.8.0.

The easiest way at the moment would be to switch back to the generic  
version using the system option "mac.listctrl.always_use_generic".  
You can do so by using the wxSystemOptions class, documented here:

http://www.lpthe.jussieu.fr/~zeitlin/wxWindows/docs/ 
wxwin_wxsystemoptions.html#wxsystemoptions

In the meantime, I'll try over the next week or two to plug some of  
the holes I didn't have time to get to before 2.8.0. ;-/

Regards,

Kevin

> Thank you in advance,
> Alicia.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>





More information about the wx-users mailing list