trichview.com

trichview.support




Re: set focus to another control


Return to index


Author

Message

Sergey Tkachenko

Posted: 04/29/2004 21:03:22


I added this code in the ActionTest demo:


procedure TForm3.RichViewEdit1DblClick(Sender: TObject);

begin

  cmbFont.SetFocus;

end;


After dblcliclink the caret blinks inside the cmbFont combobox, so the focus

is moved.

As I remember I have made some changes relating focusing and dblclicking.

Which version of TRichView do you use?


>

> hello,

>

> im a delphi newbie, so excuse my eventually lame question ;-)

>

> i want to set the focus on an editbox when the user doubleclicks on the

richview.

>

> i used this code:

>

> procedure TForm1.RichViewEdit1DblClick(Sender: TObject);

> begin

>   MyEdit.SetFocus;

> end;

>

> the problem is that the cursor immediately jumps back to the richview. How

> can I solve this?

>





Powered by ABC Amber Outlook Express Converter