This is just one way to do it.
1. Create a proc called noop
proc {noop} {} {
return 0;
}
2. Use the configure statement to change the command binding to the button to
noop.
.top28.fra30.button configure -command noop
Of course you will need to set it back in response to some event.
Hope this helps.
[EMAIL PROTECTED]
Stef Pillaert <[EMAIL PROTECTED]> on 09/25/2000 12:42:27 PM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc: (bcc: Ralph McCord/CIMG/CVG)
Subject: [vtcl-user] Simple ones (I think...)
Hello,
this probably are easy ones, but I can't find the answer (not even after
browsing a few manuals...)
: **What is the easiest way to disable all the buttons temporarily in
my application? I tried with "option add", but this is only for buttons created
afterwards, no? Can I configure a whole Class? I want to prevent the user to
push the buttons, but he still has to be able to use a few other widgets in
other windows that are opened (a scrollbar,...), so I don't think I can use grab
(please correct me if I'm wrong...)
**can I prevent the user to destroy a (popup)window (with the "X" in the
top-right of the window)? And can I force this window to stay "on top",
whatever the user does?
**The vtcl-toolbar shows a yellow 'help' text when my mouse is over a button.
Can I use this feature easily in my own applications?
**in the archived vtcl-mailing-list, I read something about a "variable"
window. Is there such a thing? Is it a window where I can declare global vars?
Thanks a lot, (and thanks for your patience: I'm only using tcl/tk for a few
days now...)
and thanks for this great tool to program tcl/tk!!!
Stef.
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/vtcl-user
att1.eml