Volk65 Posted February 10, 2018 Share Posted February 10, 2018 Hi! There are several controls on the form. All controls have code written to the OnKeyPress event that moves the input focus by pressing the "Enter"key. In UniMainModule.NavigateKeys.SelectText: = True. When you switch from one control to another by pressing "Tab" - all the text is highlighted. But when I click on "Enter" a transition to another control occurs but the text is not highlighted. I need the whole text to stand out at the entrance to cotnrol . Or can it be done differently? Test5.rar Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 10, 2018 Share Posted February 10, 2018 Hi, Have you seen this demo example ?: \FMSoft\Framework\uniGUI\Demos\Desktop\FormNavigate Best regards, Quote Link to comment Share on other sites More sharing options...
Volk65 Posted February 10, 2018 Author Share Posted February 10, 2018 Thank You. Apparently, when I studied the demonstration I did not remember this example. But there is one small problem. First control does not highlight the entire text. And it manifest in all dialog boxes. Test5.rar Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 10, 2018 Share Posted February 10, 2018 Also you can use selectOnFocus config for this: JSConfig('selectOnFocus', [True]); For example: procedure TMainForm.UniFormCreate(Sender: TObject); begin UniEdit1.JSInterface.JSConfig('selectOnFocus', [True]); end; Best regards, Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.