logo       

A couple of Tk::Text questions: msg#00014

Subject: A couple of Tk::Text questions
Hi all,

Apologies if this is covered in the FAQ or the archives. I've reviewed the FAQ and couldn't see an answer, and I've searched the archives for the keywords I think are relevant but turned up nothing...

I've got a few gripes with the ptk Text widget which I'm sure are easily resolvable - I just can't find any references for what I want to do.

1. There's a contextual menu pre-bound to one of the mouse buttons. I'd like to turn it off. (This is the file/search/etc). If I can't turn it off I'd like to at least disable the File->Exit routine, which is most annoying, but preferably I'd like to turn it off completely.

Reviewing the documentation on the use of 'bind' I thought I'd be able to disable it by simply invoking the bind routine to 'cancel' the previous definition for the mouse-click, but that doesn't seem to work either.

If anyone can suggest a way to get rid of the contextual menu being available I'd much appreciate it.

2. I frequently need to get a single line of text from users. Currently I'm using the Text widget to allow them to enter it with a height of the widget of "1". However, this still allows them to press enter and keep on typing on the next line. Is there a way I can set the maximum input height? Or is there a better widget I could be using here?

Any assistance would be greatly appreciated.

Cheers,

-Preston.

-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@xxxxxxxxxxxxxxxxxx



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe