Mega Search
23.2 Million


Sign Up

Make a donation  
TBalloonHint : Use as application hint  
News Group: embarcadero.public.delphi.vcl.components.using

Hello,

Is it possible to use TBalloonHint as CustomHint for all controls in the 
application without set each controls's customHint ?

In fact, I don't want to set CustomHint property manually for each control.
May be I must assigned HintWindowClass ...

In old projects in D7 I used TJVBalloonHint and property 
UseBalloonAsApplicationHint sets to True to have all controls with a 
balloon hint.

Thank you

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 21-Jan-2015, at 8:48 AM EST
From: =?Utf-8?Q?Eric_Gu=C3=A9guiniat?=
 
Re: TBalloonHint : Use as application hint [Edit]  
News Group: embarcadero.public.delphi.vcl.components.using
(delete)

Edited by: Eric Guéguiniat on Jan 23, 2015 10:02 AM

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 23-Jan-2015, at 10:03 AM EST
From: =?Utf-8?Q?Eric_Gu=C3=A9guiniat?=
 
Re: TBalloonHint : Use as application hint [Edit]  
News Group: embarcadero.public.delphi.vcl.components.using
Le 23/01/2015 01:15, Remy Lebeau (TeamB) a écrit :
> Uwe wrote:
>
>> Not quite, but it should be sufficient to assing a TBalloonHint
>> to each Form, so the contained controls will inherit it.
>
> CustomHint is not inherited from parent to child.
>

Hi Remy and thank you for your answer,

What must I do to use TBallonHint as I need (if it's possible) ?
I really can't use this object as is.
I understand how to use it, but with a big project it's really 
impossible to change thousands control's customHint and hint (to have 
image) property isn't realistic, isn't it ?

Edited by: Eric Guéguiniat on Jan 23, 2015 9:59 AM

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 23-Jan-2015, at 10:01 AM EST
From: =?Utf-8?Q?Eric_Gu=C3=A9guiniat?=
 
Re: TBalloonHint : Use as application hint [Edit]  
News Group: embarcadero.public.delphi.vcl.components.using
Le 23/01/2015 09:35, Olivier Sannier wrote :
>
> What prevents you from using TJvBalloonHint in your newest IDE?
>

Hi Olivier,

I use now DEX5 and some JVCL components became obsolete with this 
new IDE

By example I replaced TJVImgBtn by the standard TButton
Now TButton has image property and works like TJVImgBtn and even better, 
because TJVImgBtn doesn't work with theme (DEX2 styles) and TButton yes.

And there is others components like this.

I am new with DEX5 and I look at the new standard components (I was in 
D7 before)

When I saw TBallonHint, I tried to use it as TJVBallonHint to see the 
differences, but it seems that TBallonHint doesn't work as I expect and 
I think I will continue to use JVCL component.

Impossible to use TBalloonHint as application's hint as is.
I don't know what to do to have this behavior, but the only thing I'am 
sure is that I don't want to set CustomHint property manually for each 
control and change all hint's description to have an icon (and add a 
ballonHint on each form).
To have an icon, I must replace all hint description by 
|| ! It's really to much work just to have a nice hint ! This component is unusable for me or I missed something ... May be there is a way to have application's event to set customHint and hint description ?? Edited by: Eric Guéguiniat on Jan 23, 2015 9:58 AM
Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 23-Jan-2015, at 9:58 AM EST
From: =?Utf-8?Q?Eric_Gu=C3=A9guiniat?=
 
Re: TBalloonHint : Use as application hint  
News Group: embarcadero.public.delphi.vcl.components.using
Remy Lebeau (TeamB) wrote:

> Uwe wrote:
> 
> > Not quite, but it should be sufficient to assing a TBalloonHint
> > to each Form, so the contained controls will inherit it.
> 
> CustomHint is not inherited from parent to child.

Makes me wonder why it is working here nevertheless...

-- 
Uwe Raabe
Embarcadero MVP

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 23-Jan-2015, at 5:25 AM EST
From: Uwe Raabe
 
Re: TBalloonHint : Use as application hint  
News Group: embarcadero.public.delphi.vcl.components.using
Eric Guéguiniat wrote:
> Hello,
>
> Is it possible to use TBalloonHint as CustomHint for all controls in the
> application without set each controls's customHint ?
>
> In fact, I don't want to set CustomHint property manually for each control.
> May be I must assigned HintWindowClass ...
>
> In old projects in D7 I used TJVBalloonHint and property
> UseBalloonAsApplicationHint sets to True to have all controls with a
> balloon hint.

What prevents you from using TJvBalloonHint in your newest IDE?

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 23-Jan-2015, at 12:35 AM EST
From: Olivier Sannier
 
Re: TBalloonHint : Use as application hint  
News Group: embarcadero.public.delphi.vcl.components.using
Uwe wrote:

> Not quite, but it should be sufficient to assing a TBalloonHint
> to each Form, so the contained controls will inherit it.

CustomHint is not inherited from parent to child.

-- 
Remy Lebeau (TeamB)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 22-Jan-2015, at 4:15 PM EST
From: Remy Lebeau (TeamB)
 
Re: TBalloonHint : Use as application hint  
News Group: embarcadero.public.delphi.vcl.components.using
Uwe wrote:

> Not quite, but it should be sufficient to assing a TBalloonHint
> to each Form, so the contained controls will inherit it.

CustomHint is not inherited from parent to child.

-- 
Remy Lebeau (TeamB)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 22-Jan-2015, at 3:28 PM EST
From: Remy Lebeau (TeamB)
 
Re: TBalloonHint : Use as application hint  
News Group: embarcadero.public.delphi.vcl.components.using
Eric Guéguiniat wrote:

> Is it possible to use TBalloonHint as CustomHint for all controls in
> the application without set each controls's customHint ?

Not quite, but it should be sufficient to assing a TBalloonHint to each
Form, so the contained controls will inherit it.

-- 
Uwe Raabe
Embarcadero MVP

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 22-Jan-2015, at 3:12 PM EST
From: Uwe Raabe
 
Re: TBalloonHint : Use as application hint  
News Group: embarcadero.public.delphi.vcl.components.using
Eric wrote:

> Is it possible to use TBalloonHint as CustomHint for all controls
> in the application without set each controls's customHint ?

Not directly, no.

> May be I must assigned HintWindowClass ...

That will not work, because TCustomHint is not a descendant of THintWindow.

> In old projects in D7 I used TJVBalloonHint and property
> UseBalloonAsApplicationHint sets to True to have all controls
> with a balloon hint.

TJvBalloonHint is not a THintWindow descendant.  UseBalloonAsApplicationHint 
uses a private THintWindow-derived class named TJvBalloonWindow that looks 
like a balloon.  TJvBalloonHint itself just delegates to an internal TJvBalloonWindowEx 
object that it creates for itself.  This way, whether you assign a TJvBalloonHint 
as a control's CustomHint and let it delegate to TJvBalloonWindowEx, or let 
UseBalloonAsApplicationHint assign TJvBalloonWindow as the global HintWindowClass, 
you end up with a similar-looking balloon for everything.

-- 
Remy Lebeau (TeamB)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 21-Jan-2015, at 6:50 PM EST
From: Remy Lebeau (TeamB)