Harry_Clipper
Programmer
Hallo All,
I run into a problem with on key label.
I wrote a calculator with special function for my programm.
All works fine but the on key label "x" (for the multiplication key on the numeric keypad) does not work.
Per inkey() it would be 42 when press this key in a text control.
Here is a part of the on key label assignetments:
ON KEY LABEL "7" mycalc.container1.commandgroup1.command7.Click
ON KEY LABEL "8" mycalc.container1.commandgroup1.command8.Click
ON KEY LABEL "9" mycalc.container1.commandgroup1.command9.Click
ON KEY LABEL "+" mycalc.container1.commandgroup1.command15.Click
ON KEY LABEL "-" mycalc.container1.commandgroup1.command16.Click
ON KEY LABEL "x" mycalc.container1.commandgroup1.command17.Click &&This does not work in the numeric keypad, but for the normal key
ON KEY LABEL "/" mycalc.container1.commandgroup1.command18.Click
ON KEY LABEL "." mycalc.container1.commandgroup1.command14.Click
ON KEY LABEL "," mycalc.container1.commandgroup1.command14.Click
I can use the numeric keypad with all numbers and all calculation signs (+-/) but not x.
I Just found the solution by trying to type in the "x" on the numeric keypad: it gives a "*"
So I changed the on key label to : ON KEY LABEL "*" mycalc.container1.commandgroup1.command17.Click and it works.
So for all who may have the same problem.
Harald
I run into a problem with on key label.
I wrote a calculator with special function for my programm.
All works fine but the on key label "x" (for the multiplication key on the numeric keypad) does not work.
Per inkey() it would be 42 when press this key in a text control.
Here is a part of the on key label assignetments:
ON KEY LABEL "7" mycalc.container1.commandgroup1.command7.Click
ON KEY LABEL "8" mycalc.container1.commandgroup1.command8.Click
ON KEY LABEL "9" mycalc.container1.commandgroup1.command9.Click
ON KEY LABEL "+" mycalc.container1.commandgroup1.command15.Click
ON KEY LABEL "-" mycalc.container1.commandgroup1.command16.Click
ON KEY LABEL "x" mycalc.container1.commandgroup1.command17.Click &&This does not work in the numeric keypad, but for the normal key
ON KEY LABEL "/" mycalc.container1.commandgroup1.command18.Click
ON KEY LABEL "." mycalc.container1.commandgroup1.command14.Click
ON KEY LABEL "," mycalc.container1.commandgroup1.command14.Click
I can use the numeric keypad with all numbers and all calculation signs (+-/) but not x.
I Just found the solution by trying to type in the "x" on the numeric keypad: it gives a "*"
So I changed the on key label to : ON KEY LABEL "*" mycalc.container1.commandgroup1.command17.Click and it works.
So for all who may have the same problem.
Harald