Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^6: Perl tk FindNext in a text widget

by ghosh123 (Monk)
on May 31, 2013 at 08:43 UTC ( [id://1036188]=note: print w/replies, xml ) Need Help??


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

But while trying to use it for a string "Text" opening the application, the "next" button is not highlighting all the occurences of "Text" one by one. Only highlights the first.
Whereas "prev" button is working fine.

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

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

    But while I repeat myself :)

    Well it works for me, it works for thundergnat -- why are you so special?

      Well , I am noone special.
      Let us consider you are searching the word "have" in that text which thundergnat has inserted in the scrolled text widget.

      For "prev" button, if you keep on clicking on the "prev" button continuously with changing the cursor to any other part of the application, it goes on to highlight the "have" text in backward direction as programmed.

      But for "next", continuous clicking does not go on to highlight the text "have" in forward direction. If you change your mouse cursor and click on the scrolled text area, and then again click on the "next" button then it works. Otherwise not.
      Thanks.

        Well , I am noone special. ....

        Sure you are :) took you until Re^8 to go past "doesn't work"

        -exportselection might work on non-win32, on win32 you'd need to bind to <<Selection>>, i've posted an example before

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-25 09:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found