Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Number pad numbers do not show up on dialogs

0 views
Skip to first unread message

Anand

unread,
May 22, 2008, 2:20:48 AM5/22/08
to
In my dialog I have created an entry field as below.
Only numbers are expected as input.

The numbers entered from the top of key board work fine.

But, some numbers entered from the number pad (on right side of the
keyboard)
do not appear. Some of the numbers that do not show up are 4, 6, 7.
Entering 4 makes the cursor to move left.
Entering 4 makes the cursor to move to beginning of the string

What is going on here?
How can I correct this?

frame .f -relief groove

label .lab_phDN -font {Arial 14 bold} -text "$EnterDN";
entry .ent1 -textvariable arg2

bind .ent1 <Return> "push_getDN"
bind .ent1 <Enter> "focus -force .ent1; grab -global .ent1"
# bind .ent1 <Enter> "focus -force .ent1; grab .ent1"
bind .ent1 <Leave> "grab release .ent1"

grid .lab_phDN -in .f -row 1 -column 1 -sticky nsew
grid .ent1 -in .f -row 1 -column 2
pack .f

Gerry Snyder

unread,
May 22, 2008, 3:57:04 AM5/22/08
to
Anand wrote:
> In my dialog I have created an entry field as below.
> Only numbers are expected as input.
>
> The numbers entered from the top of key board work fine.
>
> But, some numbers entered from the number pad (on right side of the
> keyboard)
> do not appear.

Have you tried turning the NUMLOCK to ON on your keyboard?

0 new messages