[DUG] Mouse over form

Conor Boyd Conor.Boyd at trimble.co.nz
Mon Jul 3 16:51:26 NZST 2006


Sorry, you are correct.

It is related to mouse clicks, not mouse-overs, but there's probably a
similar windows message you could hook into which would give you
mouse-over awareness even when the mouse is over the border or
title-bar.

Googling's probably your best bet (delphi + wm_nchittest or similar).

I'm using this particular bit of code to allow a user to drag a
semi-transparent form around by holding down ctrl and clicking anywhere
on the form (not just the title bar) a la Yahoo Widgets.

>From a bit of googling, you could try looking at the CM_MOUSEENTER and
CM_MOUSELEAVE windows messages:
http://www.delphipages.com/tips/thread.cfm?ID=1

HTH,

Conor

-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz]
On Behalf Of John Bird

Thanks for that  - That's one I would not have known - is there
somewhere to read more on it?  From Google it looked like relating to
mouse clicks on the form, whereas I wanted to get an event with just
mouse over the form...

I tried it a bit, and it seemed to sort of work, I hadn't got the leave
part working yet, and also it seemed to disable the applications X (ie
windows
close) button.  That is not necessarily a problem, as I have been toying
with making it a borderless form anyway.

[snip]



More information about the Delphi mailing list