in reply to Re: Gtk2::Entry scroll-event
in thread Gtk2::Entry scroll-event
I'm trying to reach this event object.
Navigating the documentation is beeing a little bit difficult.
Somebody can give me a hint about how can I refer to a not explicitly instantiated event ?
i.e.: as in the Gtk2::Gdk::Event::Scroll doc :my $imp_entry = Gtk2::Entry->new_with_max_length( 6 ) ; ... $imp_entry->signal_connect( 'scroll-event' => sub { # if($imp_entry->scroll-event->direction() eq 'up'){} !?!? $imp_entry->set_text( $imp_entry->get_text() + 0.05 ) ; } ) ;
What $eventscroll ? Thanks for your attention.METHODS ... scrolldirection = $eventscroll->direction ($newvalue=0)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Gtk2::Entry scroll-event
by Anonymous Monk on Sep 01, 2012 at 07:40 UTC | |
by Anonymous Monk on Sep 01, 2012 at 07:41 UTC | |
by laybrother (Initiate) on Sep 01, 2012 at 08:11 UTC |
In Section
Seekers of Perl Wisdom