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 might want to take a look at the flags returned by > $notebook->HitTest. > > EVT_LEFT_DOWN($notebook, sub { $_[0]->{last_pos} = $_[1]->GetPosition(); > $_[1]->Skip(1); }); > > ...... > ...... > > sub OnNotebookPageChanging { > my( $self, $event ) = @_; > my( $oldSelection ) = $event->GetOldSelection; > my $notebook = $event->GetEventObject; > my ($nbitem, $flags ) = $notebook->HitTest($notebook->{last_pos}); > if($nbitem != -1) { > Wx::LogMessage(qq(New Selection Index is $nbitem)); > } -- Bruce Ravel ------------------------------------ bra...@bnl.gov National Institute of Standards and Technology Synchrotron Methods Group at NSLS --- Beamlines U7A, X24A, X23A2 Building 535A Upton NY, 11973 My homepage: http://xafs.org/BruceRavel EXAFS software: http://cars9.uchicago.edu/ifeffit/Demeter