> Hello,
> 
> the underline attributes in menu-buttons work. Pressing alt-x or
> whatever character gets underlined opens the respective menu or
> executes the respective command.
> 
> But the underline attribute in a button in the workarea of the
> dialogbox just underlines the respective character. But pressing
> alt-x doesn't invoke the command of the button.
> 
> Should there be a separate binding on buttons or are there
> additional requirements as opposed to menubuttons?

    Menu buttons bind themselves when they are defined with the
-underline attribute.  Everything else (buttons, labels, etc...) don't.
You usually have to setup a binding on the toplevel window of the widget
like this:

bind .top <Alt-x> ".button invoke"

    Or, if you had the underline on a label next to an entry, you could do:

bind .top <Alt-x> "focus .top.entry"

Damon



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user

Reply via email to