in reply to Re: Perl tk FindNext in a text widget
in thread Perl tk FindNext in a text widget

Hi thundergnat
Despite insufficient information, you have understood my requirement excellently and exactly this is what I was looking for.
The only thing is "Previous" button working fine, but the "Next" button is only highlighting the first occurence of the search string and not able to go forward.
I checked with caller(0) and other print statements. While pressing "Next", it is getting called properly with proper argument i.e "-forwards" but still the problem persists.

Thanks anyways.

  • Comment on Re^2: Perl tk FindNext in a text widget

Replies are listed 'Best First'.
Re^3: Perl tk FindNext in a text widget
by Anonymous Monk on May 31, 2013 at 07:10 UTC

      Sorry to disagree, 'next' button does not work incrementally unlike 'prev' button. Clicking the 'next' button does not go on highlighting all the occurence of the search text. It only highlights the first occurence and then stops working.

        Sure it does :)

        $ perl -d:Modlist fudge AutoLoader 5.72 Carp 1.26 Config Cwd 3.36 DynaLoader 1.13 Encode 2.47 Encode::Alias 2.16 Encode::Byte 2.04 Encode::Config 2.05 Encode::Encoding 2.05 Encode::Unicode 2.07 Exporter 5.66 Exporter::Heavy 5.66 File::Spec 3.33 File::Spec::Unix 3.33 File::Spec::Win32 3.33 Symbol 1.07 Text::Tabs 2012.0818 Tk 804.03 Tk::After 4.008 Tk::Button 4.010 Tk::Clipboard 4.009 Tk::CmdLine 4.007 Tk::Configure 4.009 Tk::Derived 4.011 Tk::Entry 4.018 Tk::Event 4.024 Tk::Event::IO 4.009 Tk::Frame 4.010 Tk::Image 4.011 Tk::MainWindow 4.015 Tk::Scrollbar 4.010 Tk::Submethods 4.005 Tk::Text 4.028 Tk::Toplevel 4.006 Tk::Widget 4.035 Tk::Wm 4.015 XSLoader 0.15 base 2.18 bytes 1.04 constant 1.21 feature 1.20 unicore::Heavy.pl unicore::To::Lower.pl utf8 1.09 utf8_heavy.pl vars 1.02 warnings 1.12 warnings::register 1.02