Re: Wx::ListCtrl bugs

2011-12-01 Thread Mark Dootson
Hi, Thanks for the report. I tested the attached simple script on ActivePerl 5.14 with ppms from wxperl.co.uk and found no issues. (Tested Windows 7 64 bit and Vista 32 + 64 bit). Which leaves me stuck on trying to fix the problem you encountered. If at some point you have the free time, alte

Re: EVT_NOTEBOOK_PAGE_CHANGING on Windows

2011-12-01 Thread Bruce Ravel
Mark, You're my hero! That's a very handy suggestion, indeed. Thanks, B On Thursday, December 01, 2011 01:47:16 pm Mark Dootson wrote: > The following 'workaround' seems to work on Windows. Just record every > Left down mouse position and use it in EVT_NOTEBOOK_PAGE_CHANGING > handler. You m

Wx::ListCtrl bugs

2011-12-01 Thread Jiří Pavlovský
Hello, I've been experiencing problems with Wx::ListCtrl. For example it was freezing whenever I called FindItem. I just find out that the problem appears in Wx from wxperl.co.uk, but the Wx supplied with ActivePerl seems to be ok. I believe I did not mix stuff from ActiveState and wxperl.co

Re: EVT_NOTEBOOK_PAGE_CHANGING on Windows

2011-12-01 Thread Mark Dootson
Hi, The following 'workaround' seems to work on Windows. Just record every Left down mouse position and use it in EVT_NOTEBOOK_PAGE_CHANGING handler. You might want to take a look at the flags returned by $notebook->HitTest. EVT_LEFT_DOWN($notebook, sub { $_[0]->{last_pos} = $_[1]->GetPositio

Re: EVT_NOTEBOOK_PAGE_CHANGING on Windows

2011-12-01 Thread Brad Embree
I believe this is known behaviour. From http://docs.wxwidgets.org/stable/wx_wxnotebookevent.html#wxnotebookeventgetselection : *"NB:* under Windows, GetSelection() will return the same value as GetOldSelection()

EVT_NOTEBOOK_PAGE_CHANGING on Windows

2011-12-01 Thread Bruce Ravel
Hi, I am surprised by a bit of behavior by a Notebook on my windows machines. The short script below distills the problem down to its essence. I want to use the EVT_NOTEBOOK_PAGE_CHANGING event to veto the selection of a tab under a certain situation. In this simple example, I intend to veto t