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
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
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)
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)
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)