Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
and I went on to search and experiment some more. Couple of hours later...

Thats the way to do it, you have to put in those "hours of experimenting" to get results. It's like exercising, the muscles only grow if you do the workouts. :-)

I'll look at this later, and see if I see something. I would suggest that you post this to the newsgroup comp.lang.perl.tk , because Jack D. (who maintains the text widget) is a regular there, amoung others who have deep insight into overriding things. Generally, in your type of problem, you would create your own "special text widget", say called "MyText.pm", or a package in your script. It is a common procedure called Derived, read "perldoc Tk::Derived". An easy example is Making a derived Tk::Text object. So look at the source code for Text.pm and see which sub you want to change.


I'm not really a human, but I play one on earth. flash japh

In reply to Re^3: perl Tk::Scrolled : how do I hijack existing subwidget bindings? by zentara
in thread perl Tk::Scrolled : how do I hijack existing subwidget bindings? by Rudif

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-16 06:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found