🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #6224

Re: OnMouseEnter/Leave

#6224
From: Hans Galema
Date: Sat, 04 Jun 2005 13:56
22 lines
1673 bytes
xa wrote:
> I have a OnMouseEnter and leave for three labels that i have placed upon an
> image, problem is sometimes if the mouse passes quickly over them the events
> mis calls and one of the labels stay higlighted.
> If i place the label straight onto the form instead there fine...any idea
> what i can do..
> 
> I am currently using the method
> Label2->WindowProc = Label2WndProc;
> type method.

Well there is no VCL OnMouseEnter for a TLabel. So you are using
WindowProc() for a TLabel.

You could do away with that if the three labels are fully inside
the TImage.

In the TLabels OnMouseMove highlight the specific label.

In the TImage OnMouseMove for all three labels highlight off.

Hans.
Technical Details
Message-ID: <42a1b3c7@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42a18c2d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9f587cb5ceaaf6f
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 04 Jun 2005 15:56:15 +0200
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: OnMouseEnter/Leave
References: <42a18c2d@newsgroups.borland.com>
In-Reply-To: <42a18c2d@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.201.248
Message-ID: <42a1b3c7@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1117893575 129.125.201.248 (4 Jun 2005 06:59:35 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail