[wxPython-users] [wxMac] Status of the native wxListCtrl?
Kevin Ollivier
kevino at theolliviers.com
Wed Aug 15 09:55:29 PDT 2007
Hi Roee,
On Aug 15, 2007, at 1:29 AM, roee shlomo wrote:
> Hi,
>
> The wxWidgets docs note this:
> Mac Note: Starting with 2.8, wxListCtrl uses a native
> implementation for report mode, and uses a generic implementation
> for other modes. You can use the generic implementation for report
> mode as well by setting the mac.listctrl.always_use_generic
> wxSystemOption to 1.
>
> Sounds like the native wxListCtrl for mac is complete, but:
> 1. The default on wxPython is still the generic widget.
> 2. My tests shows it still has many bugs ( I havn't tested it
> deeply, but from how my app behaves with the native list it seems
> like EVT_LIST_COL_RIGHT_CLICK doesn't work, GetCountPerPage never
> returns more than 1, SetStringItem disables the current selection,
> some size/layout issues...).
>
> My question is:
> Is (1) a consequence of (2) and the native listctrl is still work
> in progress ?
Yes, you can say that, but please report any bugs you find,
particularly with a sample app if possible. wxListCtrl is a
particularly hard class to code and test, because there are several
modes, and it is sometimes very low level. (Whereas on Mac, for
example, the native control has a more high-level interface - i.e.
you don't check for column clicks, you receive sort events.) I also,
in a number of cases, had no actual working sample of an API (e.g.
GetCountPerPage) to test against, making it pretty difficult to know
if I'm doing things right, or even how an API is actually used.
There are also a couple cases where wxListCtrl APIs really don't have
a corresponding native API we can use. But in most cases, we were
able to find creative solutions, so if you let me know what's
breaking and show me an example of its use, I can probably figure out
a way to fix it.
Thanks,
Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20070815/86373d8e/attachment.htm
More information about the wxpython-users
mailing list