Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How do I make a static text clickable in wxPerl?

by Anonymous Monk
on May 27, 2011 at 05:57 UTC ( [id://906927]=note: print w/replies, xml ) Need Help??


in reply to How do I make a static text clickable in wxPerl?

How can I make the static text respond to a mouse event like a button does so that I can click $lable to exit?

Written like someone who skipped reading the event handling overview. Use EVT_MOUSE_EVENTS or create a wxEvtHandler subclas...

use strict; use warnings; use Wx; package MyApp; use base 'Wx::App'; sub OnInit { my $frame = Wx::Frame->new( undef, -1, 'A Clickable Label', ); my $label = Wx::StaticText->new( $frame, -1, "Click here to exit", + ); my $sizer = Wx::BoxSizer->new( Wx::wxVERTICAL() ); $frame->SetSizer($sizer); $sizer->Add($label); $sizer->Add( Wx::Button->new( $frame, -1, "Click here to exit $_", + ) ) for 1 .. 3; Wx::Event::EVT_MOUSE_EVENTS( $_[0], sub { #~ perl -MWx -le "print for sort keys %Wx::MouseEvent:: " my ( $s, $e ) = @_; #~ LeftIsDown MiddleIsDown RightIsDown my $IsDown = join( '|', grep { my $m = $_ . 'IsDown'; eval { $e->$m; } } qw' Left Middle Right ' ); $IsDown = sprintf 'IsDown< %s >', $IsDown if length $IsDow +n; #~ AltDown ButtonDown CmdDown ControlDown LeftDown MetaDown MiddleDown + RightDown ShiftDown my $Down = join( '|', grep { my $m = $_ . 'Down'; $e->$m; } qw' Alt Button Cmd Control Left Meta Middle R +ight Shift ' ); $Down = sprintf 'Down< %s >', $Down if length $Down; #~ ButtonDClick LeftDClick MiddleDClick RightDClick my $DClick = join( '|', grep { my $m = $_ . 'DClick'; $e->$m; } qw' Button Left Middle Right ' ); $DClick = sprintf 'DClick< %s >', $DClick if length $DClic +k; #~ IsButton IsPageScroll my $Is = join( '|', grep { my $m = 'Is' . $_; $e->$m; } qw' Button PageSc +roll ' ); $Is = sprintf 'Is< %s >', $Is if length $Is; my $Bool = join( '|', grep { my $m = $_; $e->$m; } qw' Button Dragging Entering Leaving Moving ' ); $Bool = sprintf '< %s >', $Bool if length $Bool; #~ GetButton GetLinesPerAction GetLogicalPosition GetPosition GetPosit +ionXY GetWheelDelta GetWheelRotation GetX GetY my $Get = sprintf "Get< %s >", join( '|', map { my $m = 'Get' . $_; sprintf '%s( %s )', $_, $e-> +$m; } qw' Button LinesPerAction ', #~ LogicalPosition #~ Usage: Wx::MouseEvent::GetLogicalPosition(THIS, dc) #~ Position PositionXY #~ X Y qw' WheelDelta WheelRotation ' ); my $GetEvent = $e->GetEventType; $GetEvent = TypeIntToStr($GetEvent) . "($GetEvent) " . $e->GetEventO +bject; my $XY = sprintf "%4d,%4d ", $e->GetPositionXY; print $XY, join ' ', grep length, $Is, $IsDown, $DClick, $ +Down, $Bool, $Get, $GetEvent, "\n"; $e->Skip; return; } ); $frame->Show; } ## end sub OnInit MyApp->new->MainLoop; BEGIN { my %str2con = map { my $dummy; my $con = Wx::constant( $_, 0, $dummy ); $_ => $con; } grep /^wxEVT_/, keys %Wx::; my %con2str = reverse %str2con; sub TypeIntToStr { $con2str{ +shift } ||'' } } ## end BEGIN __END__
24, 0 < Entering > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta +( 0 )|WheelRotation( 0 ) > wxEVT_ENTER_WINDOW(10108) Wx::StaticText=H +ASH(0xa1e2c4) 24, 0 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::StaticText=HASH(0xa1 +e2c4) 24, 1 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::StaticText=HASH(0xa1 +e2c4) 24, 1 Is< Button > IsDown< Left > Down< Button|Left > < Button > G +et< Button( 1 )|LinesPerAction( 0 )|WheelDelta( 0 )|WheelRotation( 0 +) > (10101) Wx::StaticText=HASH(0xa1e2c4) 24, 1 Is< Button > < Button > Get< Button( 1 )|LinesPerAction( 0 ) +|WheelDelta( 0 )|WheelRotation( 0 ) > (10102) Wx::StaticText=HASH(0xa +1e2c4) 24, 1 Is< Button > IsDown< Left > DClick< Button|Left > < Button > + Get< Button( 1 )|LinesPerAction( 0 )|WheelDelta( 0 )|WheelRotation( +0 ) > (10110) Wx::StaticText=HASH(0xa1e2c4) 24, 1 Is< Button > < Button > Get< Button( 1 )|LinesPerAction( 0 ) +|WheelDelta( 0 )|WheelRotation( 0 ) > (10102) Wx::StaticText=HASH(0xa +1e2c4) 24, 2 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::StaticText=HASH(0xa1 +e2c4) 23, 3 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::StaticText=HASH(0xa1 +e2c4) 22, 3 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::StaticText=HASH(0xa1 +e2c4) 22, 4 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::StaticText=HASH(0xa1 +e2c4) 22, 5 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::StaticText=HASH(0xa1 +e2c4) 21, 6 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::StaticText=HASH(0xa1 +e2c4) 21, 7 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::StaticText=HASH(0xa1 +e2c4) 21, 8 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::StaticText=HASH(0xa1 +e2c4) 21, 9 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::StaticText=HASH(0xa1 +e2c4) 21, 10 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::StaticText=HASH(0xa1 +e2c4) 21, 11 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::StaticText=HASH(0xa1 +e2c4) 21, 12 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::StaticText=HASH(0xa1 +e2c4) 21, 0 < Entering > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta +( 0 )|WheelRotation( 0 ) > wxEVT_ENTER_WINDOW(10108) Wx::Button=HASH( +0xda0a14) 21, 0 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a14 +) 21, 13 < Leaving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( + 0 )|WheelRotation( 0 ) > wxEVT_LEAVE_WINDOW(10109) Wx::StaticText=HA +SH(0xa1e2c4) 21, 1 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a14 +) 21, 2 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a14 +) 21, 3 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a14 +) 21, 3 Is< Button > IsDown< Left > Down< Button|Left > < Button > G +et< Button( 1 )|LinesPerAction( 0 )|WheelDelta( 0 )|WheelRotation( 0 +) > (10101) Wx::Button=HASH(0xda0a14) 21, 3 Is< Button > < Button > Get< Button( 1 )|LinesPerAction( 0 ) +|WheelDelta( 0 )|WheelRotation( 0 ) > (10102) Wx::Button=HASH(0xda0a1 +4) 21, 3 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a14 +) 21, 3 Is< Button > IsDown< Left > Down< Button|Left > < Button > G +et< Button( 1 )|LinesPerAction( 0 )|WheelDelta( 0 )|WheelRotation( 0 +) > (10101) Wx::Button=HASH(0xda0a14) 21, 3 Is< Button > IsDown< Left > DClick< Button|Left > < Button > + Get< Button( 1 )|LinesPerAction( 0 )|WheelDelta( 0 )|WheelRotation( +0 ) > (10110) Wx::Button=HASH(0xda0a14) 21, 3 Is< Button > < Button > Get< Button( 1 )|LinesPerAction( 0 ) +|WheelDelta( 0 )|WheelRotation( 0 ) > (10102) Wx::Button=HASH(0xda0a1 +4) 21, 3 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a14 +) 21, 3 Is< Button > IsDown< Left > Down< Button|Left > < Button > G +et< Button( 1 )|LinesPerAction( 0 )|WheelDelta( 0 )|WheelRotation( 0 +) > (10101) Wx::Button=HASH(0xda0a14) 21, 3 Is< Button > < Button > Get< Button( 1 )|LinesPerAction( 0 ) +|WheelDelta( 0 )|WheelRotation( 0 ) > (10102) Wx::Button=HASH(0xda0a1 +4) 21, 3 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a14 +) 21, 5 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a14 +) 21, 6 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a14 +) 21, 8 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a14 +) 21, 9 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a14 +) 21, 10 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a14 +) 21, 11 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a14 +) 21, 13 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a14 +) 21, 14 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a14 +) 21, 16 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a14 +) 21, 18 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a14 +) 21, 19 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a14 +) 21, 22 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a14 +) 22, 0 < Entering > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta +( 0 )|WheelRotation( 0 ) > wxEVT_ENTER_WINDOW(10108) Wx::Button=HASH( +0xda0a04) 22, 0 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a04 +) 22, 23 < Leaving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( + 0 )|WheelRotation( 0 ) > wxEVT_LEAVE_WINDOW(10109) Wx::Button=HASH(0 +xda0a14) 22, 1 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a04 +) 22, 2 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a04 +) 22, 2 Is< Button > IsDown< Left > Down< Button|Left > < Button > G +et< Button( 1 )|LinesPerAction( 0 )|WheelDelta( 0 )|WheelRotation( 0 +) > (10101) Wx::Button=HASH(0xda0a04) 22, 2 Is< Button > < Button > Get< Button( 1 )|LinesPerAction( 0 ) +|WheelDelta( 0 )|WheelRotation( 0 ) > (10102) Wx::Button=HASH(0xda0a0 +4) 22, 2 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a04 +) 22, 2 Is< Button > IsDown< Left > Down< Button|Left > < Button > G +et< Button( 1 )|LinesPerAction( 0 )|WheelDelta( 0 )|WheelRotation( 0 +) > (10101) Wx::Button=HASH(0xda0a04) 22, 2 Is< Button > IsDown< Left > DClick< Button|Left > < Button > + Get< Button( 1 )|LinesPerAction( 0 )|WheelDelta( 0 )|WheelRotation( +0 ) > (10110) Wx::Button=HASH(0xda0a04) 22, 2 Is< Button > < Button > Get< Button( 1 )|LinesPerAction( 0 ) +|WheelDelta( 0 )|WheelRotation( 0 ) > (10102) Wx::Button=HASH(0xda0a0 +4) 22, 2 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a04 +) 22, 3 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a04 +) 22, 4 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a04 +) 21, 5 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a04 +) 21, 6 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a04 +) 21, 8 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a04 +) 21, 10 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a04 +) 21, 12 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a04 +) 21, 14 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a04 +) 22, 17 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a04 +) 23, 19 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a04 +) 24, 21 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a04 +) 25, 22 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda0a04 +) 25, 0 < Entering > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta +( 0 )|WheelRotation( 0 ) > wxEVT_ENTER_WINDOW(10108) Wx::Button=HASH( +0xda09c4) 25, 0 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda09c4 +) 25, 23 < Leaving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( + 0 )|WheelRotation( 0 ) > wxEVT_LEAVE_WINDOW(10109) Wx::Button=HASH(0 +xda0a04) 25, 2 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda09c4 +) 25, 3 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda09c4 +) 26, 4 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda09c4 +) 26, 5 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda09c4 +) 26, 6 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda09c4 +) 26, 7 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda09c4 +) 27, 8 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda09c4 +) 27, 8 Is< Button > IsDown< Left > Down< Button|Left > < Button > G +et< Button( 1 )|LinesPerAction( 0 )|WheelDelta( 0 )|WheelRotation( 0 +) > (10101) Wx::Button=HASH(0xda09c4) 27, 8 Is< Button > < Button > Get< Button( 1 )|LinesPerAction( 0 ) +|WheelDelta( 0 )|WheelRotation( 0 ) > (10102) Wx::Button=HASH(0xda09c +4) 27, 8 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda09c4 +) 27, 8 Is< Button > IsDown< Left > Down< Button|Left > < Button > G +et< Button( 1 )|LinesPerAction( 0 )|WheelDelta( 0 )|WheelRotation( 0 +) > (10101) Wx::Button=HASH(0xda09c4) 27, 8 Is< Button > IsDown< Left > DClick< Button|Left > < Button > + Get< Button( 1 )|LinesPerAction( 0 )|WheelDelta( 0 )|WheelRotation( +0 ) > (10110) Wx::Button=HASH(0xda09c4) 27, 8 Is< Button > < Button > Get< Button( 1 )|LinesPerAction( 0 ) +|WheelDelta( 0 )|WheelRotation( 0 ) > (10102) Wx::Button=HASH(0xda09c +4) 27, 8 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda09c4 +) 27, 7 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda09c4 +) 26, 7 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda09c4 +) 26, 6 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda09c4 +) 25, 6 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda09c4 +) 24, 6 < Moving > Get< Button( 0 )|LinesPerAction( 0 )|WheelDelta( +0 )|WheelRotation( 0 ) > wxEVT_MOTION(10107) Wx::Button=HASH(0xda09c4 +)

Replies are listed 'Best First'.
Re^2: How do I make a static text clickable in wxPerl?
by ZJ.Mike.2009 (Scribe) on May 28, 2011 at 01:59 UTC
    Thank you Anonymous Monk! The example is very educational. I didn't know it would be this easy to detect mouse events in Wx.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://906927]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-20 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found