[wxruby-users] ListCtrl unexpected behavior
Alex Fenton
alex at pressure.to
Fri Jan 9 17:40:00 EST 2009
Hi Fabio
Fabio Petrucci wrote:
> using ListCtrl, I realized that, capturing the selection event by
> using the macro evt_list_item_selected, I get mistaken event of type
> ListItem instead of type ListEvent.
> I noticed that this occurs when i use the keyboard arrow keys to move
> through the list.
>
> It can be shown in the example Bigdemo -> wxListCtrl_virtual causing
> the error.
>
> my environment is
>
> wxruby-1.9.9-x86-mswin32-60, ruby 1.8.6
> ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
> WinXP sp2
Thanks for the report. I think that at the root this is the same bug
that others were encountering with Scintilla event handlers, which is
now fixed in SVN. I will try and reproduce using the ListCtrl on Windows
(the bug depends partly on how the OS allocates memory blocks).
Useful to know that it wasn't a problem in 1.9.8 - will check see if any
other classes might have this problem. It will be fixed for 2.0
cheers
alex
More information about the wxruby-users
mailing list