Focused textbox and hotkeys

Created at 05 Jun 2023, 18:18
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
AL

AlexFrei

Joined 05.06.2023

Focused textbox and hotkeys
05 Jun 2023, 18:18


Hello,

I have my Bot with UI. There is panel with textboxes and buttons. I set few hotkeys on start. But If I change any textbox value, or click into textbox and it receives focus, hotkeys dont work anymore. I have to click on panel, outside of any textbox to hotkeys work again.

How can I reslove this ? I have one button for minimize this panel. If I click this button I would like to set focus to panel (or something different than textbox) programatically. But I didnt found any method for setting focus to control.

Thank you for your help

Alex

 


@AlexFrei
Replies

firemyst
07 Jun 2023, 03:13

RE:

AlexFrei said:

 

I have one button for minimize this panel. If I click this button I would like to set focus to panel (or something different than textbox) programatically. But I didnt found any method for setting focus to control.

Thank you for your help

Alex

 

 


@firemyst