Board index » delphi » RichEdit MouseUp

RichEdit MouseUp

Has this been discussed before?

Both Delphi C/s 3 & 4, with all the fixes on.

The MouseUp event does not fire, but MouseDown does.

To recreate, start a new app, drop a richedit on the form, give it some
lines, put a messagedlg in the mouseup event, and run. Hilight some text
and when you let up on the mouse button nothing happens.

---------------------------------
Scott Mattes
ICQ:  18330579
Work: Scott.Mat...@Wang.com
Home: SMat...@Erols.com
Web:  www.erols.com/smattes

 

Re:RichEdit MouseUp


Quote
> The MouseUp event does not fire, but MouseDown does.
> To recreate, start a new app, drop a richedit on the form, give it some
> lines, put a messagedlg in the mouseup event, and run. Hilight some text
> and when you let up on the mouse button nothing happens.

It is in fact a bit more complicated: when you select some text and then
mouse down and let go over the selection the OnMouseUp event *will* fire.
It does not do it if you do the same outside selected text. I don't know
why this happens, i could find nothing in the VCL code that would explain
it. Since TMemo does not show this behaviour i have the {*word*193} suspicion
that MS did cut corners in the rich edit controls code, e.g. handling the
text selection with an internal message loop that exist on WM_LBUTTONUP
*without* passing this message to the controls window proc.

Peter Below (TeamB)  100113.1...@compuserve.com)
No e-mail responses, please, unless explicitly requested!

Re:RichEdit MouseUp


I just received word from Borland on my bug report on this matter. It is
fixed in D5, and that is the only way to get a fix.

Quote
Scott Mattes wrote:

> Has this been discussed before?

> Both Delphi C/s 3 & 4, with all the fixes on.

> The MouseUp event does not fire, but MouseDown does.

> To recreate, start a new app, drop a richedit on the form, give it some
> lines, put a messagedlg in the mouseup event, and run. Hilight some text
> and when you let up on the mouse button nothing happens.

> ---------------------------------
> Scott Mattes
> ICQ:  18330579
> Work: Scott.Mat...@Wang.com
> Home: SMat...@Erols.com
> Web:  www.erols.com/smattes

--
---------------------------------
Scott Mattes
ICQ:  18330579
Work: Scott.Mat...@Wang.com
Home: SMat...@Erols.com
Web:  www.erols.com/smattes

Other Threads