Jump to content

TUniHTMLMemo.SetFocus


Bernie07

Recommended Posts

Hello,

 

I have a component of the class TUniHTMLMemo. If I'm using the SetFocus method in OnShow of the form, it works.

But if I'm using the SetFocus for example in OnKeyPress of another Control nothing happens.

 

This is the Code :

 

procedure TFormKDMonPersonaldienstleisterMitteilung.EinBetreffKeyPress(
  Sender: TObject; var Key: Char);
begin
  if key=#13 then MemMitteilung.SetFocus;
end;
 

With all other UniGui controls it works within the OnKeyPress Event. Only the TUniHTMLMemo has a Problem.

 

Best wishes

Bernhard

Link to comment
Share on other sites

Thanks for your answer.

 

Yes, this code works fine. So the problem is for me solved.

My browser is Google Chrome (latest build). But with Firefox there is the same Problem.

The build of uniGui is 1.0.0.1368

 

Best wishes

Bernhard

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...