[wxMSW][3.1.2] How to make tab navigation also possible with the RETURN key?

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
tomay3000
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Mon Apr 24, 2017 4:23 am

[wxMSW][3.1.2] How to make tab navigation also possible with the RETURN key?

Post by tomay3000 »

Hello,
I want to make tab navigation also possible with the RETURN key for wxTextCtrl and wxComboBox.
I know that I should use wxTE_PROCESS_ENTER style and call wxWindow::Navigate() function in its wxEVT_COMBOBOX event handler to achieve this, but the problem appears when:
If these is an AutoComplete wxArrayString associated with the control, then tab key navigation will be disabled.

Any suggestions here!

TIA
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7458
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: [wxMSW][3.1.2] How to make tab navigation also possible with the RETURN key?

Post by ONEEYEMAN »

HI,
What wx version?
What platform?

Thank you.
tomay3000
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Mon Apr 24, 2017 4:23 am

Re: [wxMSW][3.1.2] How to make tab navigation also possible with the RETURN key?

Post by tomay3000 »

it is already mentioned in the thread title:
wxMSW and v3.1.2
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7458
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: [wxMSW][3.1.2] How to make tab navigation also possible with the RETURN key?

Post by ONEEYEMAN »

Hi,
Did you try to catch wxEVT_CHAR_HOOK?
Also - are you using the standard wxWidgets autocompletioon control or you have your own?

Thank you.
tomay3000
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Mon Apr 24, 2017 4:23 am

Re: [wxMSW][3.1.2] How to make tab navigation also possible with the RETURN key?

Post by tomay3000 »

NO, I did not try to catch wxEVT_CHAR_HOOK.
Yes, I am using the standard wxWidgets auto-completion control?

Also I have noticed that tab navigation is passed to the auto-completion control (meaning it is working for the auto-completion control list).
I think that this is the cause it is not working for the wxTextCtrl and wxComboBox.
I need to disable it from the auto-completion control.
Post Reply