🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Show Hint When Form is Inactive

#4585
From: JD
Date: Wed, 21 Dec 2005 11:36
21 lines
1600 bytes
"Mamat" <mamat@no-spam.no> wrote:
>
> I made an AppBar, with toolbar. Set button ShowHint to true.
>
> What i can't get around is the hint won't appear when my
> AppBar is not active (other Application get the Focus),
> [...] I have to click somewhere in my program to get focus,
> then  a hint will appear.

This is normal Window's behavior. If you want to change that,
you'll need to subclass each control's WndProc method (or
subclass the control and then override it's WndProc method)
so that you can detect when the mouse enters the control and
manually activate the hint.

If you're using the VCL, you can listen for CM_MOUSEENTER.
Otherwise you have to listen for WM_MOUSEMOVE and WM_MOUSELEAVE
and use a flag.

~ JD
Technical Details
Message-ID: <43a94c5e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <43a648f7@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,adf6ee7eb2c4c033
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: Re: Show Hint When Form is Inactive
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 152.163.100.131     
X-Forwarded-For: 172.149.21.51
References:  <43a648f7@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <43a94c5e$1@newsgroups.borland.com>
Date: 21 Dec 2005 04:36:46 -0700
X-Trace: newsgroups.borland.com 1135168606 207.105.83.66 (21 Dec 2005 04:36:46 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail