Tabbing stops working?

  • Thread starter Thread starter Fredrik Melin
  • Start date Start date
F

Fredrik Melin

Have posted about this before without luck, maybe someone know a workaround.

Using Framework 1.1

I have about 140 clients running my application, every day, some of them
loosing the Tab key function in the forms, they also loosing the enter key
functionallity.

Instead of TAB and Enter the active button (what ever button that is for the
moment) get pressed instead.

The enter problem I have "solved" by telling them to use CTRL-Enter instead
that seems to work better.

But for the TAB button I dont know how to solve it.

One time, I manage to get the same problem in my IDE while debugging, and on
Enter or TAB the only message sent was as the active button was clicked, the
message for the TAB or enter never got triggered.

I suspect its linked to forms having a Tabpage on it, its only happening
there.

Anyone seen the same and have a solution?

Regards
Fredrik Melin
 
Fredrik Melin said:
Have posted about this before without luck, maybe someone know a
workaround.

Using Framework 1.1

I have about 140 clients running my application, every day, some of
them loosing the Tab key function in the forms, they also loosing the
enter key functionallity.

Instead of TAB and Enter the active button (what ever button that is
for the moment) get pressed instead.

The enter problem I have "solved" by telling them to use CTRL-Enter
instead that seems to work better.

But for the TAB button I dont know how to solve it.

One time, I manage to get the same problem in my IDE while debugging,
and on Enter or TAB the only message sent was as the active button
was clicked, the message for the TAB or enter never got triggered.

I suspect its linked to forms having a Tabpage on it, its only
happening there.

Anyone seen the same and have a solution?

Yes, concerning the Enter key: It's the default behavior that the button
gets pressed if it is focused and Enter is pressed, so I'm not quite sure if
I understood you correctly. Concerning Tab: Did you add any key handling m
echanism, like keypress, keydown, processdialogkey, processtabkey...?


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
Regarding Enter, the problem is that the Focus is a any textbox, Eg, user
enter a text in a multiline textbox and want a new line, He/She presses
enter, and a button get pressed.

Same with Tab instead of moving to the next Text field, a button get
pressed...

Regards
Fredrik
 
Fredrik Melin said:
Regarding Enter, the problem is that the Focus is a any textbox, Eg,
user enter a text in a multiline textbox and want a new line, He/She
presses enter, and a button get pressed.

Same with Tab instead of moving to the next Text field, a button
get pressed...


You wrote "...the active button (what ever button that is for the moment)
get pressed instead". I thought "active button" means that the button has
the focus.

And again the question: Did you add any key handling m echanism, like
keypress, keydown, processdialogkey, processtabkey...?

If you can reproduce the bahvior, try to set a breakpoint in the button's
click event. When you press tab and the breakpoint is hit, have a look at
the callstack to be able to find out the reason. If you don't, you can post
the callstack here and I'll have a look at it.


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
Back
Top