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
|