Re: Highlighted Text


[ DelphiLand FAQ ]

Posted by webmaster Guido on June 12, 2004 at 16:11:40:

In Reply to: Re: Highlighted Text posted by Joey p12386 on June 12, 2004 at 15:18:15:

: When you click a button or another control on a form the RichEdit looses focus and the control your interacting with gains it. Within the mouse click you perform:
: RichEdit.SetFocus;
: This will put the windows focus back over the RichEdit control highlighting the text that was pre high-lighted.

: Joey =D
--------------------

Here's a trick: if you only have a RichEdit and some buttons on the form, avoid that the RichEdit looses "focus". In that case, replace the TButton and TBitButton components with TSpeedButton, because these do not get the focus.



Related Articles and Replies:


[ DelphiLand FAQ ]