Jump to content
uniGUI Discussion Forums
Volk65

The transition between the Contorls by "Enter" key

Recommended Posts

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

Share this post


Link to post
Share on other sites

Hi,

 

Have you seen this demo example ?:

\FMSoft\Framework\uniGUI\Demos\Desktop\FormNavigate

Best regards,

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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,

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×