It seems that Tk doesn't automatically handle underlined characters for
buttons.

You have to add bindings to the toplevel for shortcuts like alt-x and alt-c.
It is better to add bindings to the toplevel, so that they apply to any
widget contained in it.

CG

----- Original Message -----
From: "Hanspeter Roth" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 21, 2002 3:29 PM
Subject: [vtcl-user] underline of Buttons


> 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?
>
> -Hanspeter
>
>
> -------------------------------------------------------
> 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
>



-------------------------------------------------------
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