TBalloonHint issues

I need a BalloonHint with a certain background color, and showing as a balloon, with stem.
My program does NOT use Themes.

How do I make this work?
The TBalloonHint currently shows a a basic box.
I then tried to write a descendant, so I could overwrite the PaintHint(HintWindow:TCustomHintWindow), using the orginal version in Vcl.Controls as a template.
But, I do not have access to the TCustomHintWindow Canvas and other variables, which are 'private', and I do not understand why the original PaintHint DOES have access to these private variables.

I do not use Themes.
I need working a BalloonHint, which shows as a balloon, and has a specific background color.

How do I do this?

Thanks, Bart

--
Bart Kindt, CEO and developer
SARTrack Limited New Zealand
http://www.sartrack.co.nz/
0
Bart
7/9/2015 7:04:38 AM
embarcadero.delphi.general 4258 articles. 0 followers. Follow

2 Replies
1479 Views

Similar Articles

[PageSpeed] 38
Get it on Google Play
Get it on Apple App Store

Bart wrote:

> My program does NOT use Themes.
> ...
> The TBalloonHint currently shows a a basic box.

That is because TBalloonHint does not draw itself as a balloon when theming 
is disabled.  And even if it did, it uses a hard-coded background color when 
VCL Styles are not enabled to override the color.

> But, I do not have access to the TCustomHintWindow Canvas and
> other variables, which are 'private', and I do not understand why
> the original PaintHint DOES have access to these private variables.

Because TBalloonHint and TCustomHintWindow are implemented in the same unit, 
so they have implicit friendship to access each other's internals.

> I need working a BalloonHint, which shows as a balloon, and has a
> specific background color.
>
> How do I do this?

I don't think you can with TBalloonHint.  You will likely have to create 
your own TCustomHint class and draw it however you want.

-- 
Remy Lebeau (TeamB)
0
Remy
7/9/2015 9:18:20 PM
> {quote:title=Remy Lebeau (TeamB) wrote:}{quote}

> I don't think you can with TBalloonHint.  You will likely have to create 
> your own TCustomHint class and draw it however you want.

I tried that now. It does not work. First, all Forms and all Controls are using 
CustomHint = VCL.TCustomHint. 
When I overwrite this to my own CustomHint on my test form, it still only shows the original system hint, it ignores my setting in Form.Create of CustomHint := MyBalloonHint1;

Where MyBalloonHint1 is a complete copy of the original VCL structures, minus the Theme stuff.
But it is not calling it. 
Also, it would be completely impossible to manually overwrite every single Control's CustomHint with my own one instead of the VCL.TCustomHint.

As a PS, is there a way to intercept an "OnHint" event, so I can write a different balloon system?

Bart

--
Bart Kindt, CEO and developer
SARTrack Limited New Zealand
http://www.sartrack.co.nz/
0
Bart
7/10/2015 5:35:58 AM
Reply:

Similar Artilces:

Firefox, combobox (and others), display issue and general working issue
Hi I am building a site using ASP.NET 3.5. I have on there a combobox which on IE works fine, but on Firefox, is only displaying the last value, and when I click the (oversize) down arrow, the combo expands but displays black  Having a problem with one or two other controls but any ideas what the problem might be? This is on Firefox 3.0.1 but other versions as well Thanks Why don't you post some of the code or markup and then maybe someone can help you. NC...   Actually, while copying and pasting the code I think I have found the problem. Seems Firefox and the Ajax To...

delphi.general
Sorry if this is "out of topic"! but since some days ago I can't read the group *embarcadero.public.delphi.language.delphi.general* Does anybody know if there's something wrong with it? Or maybe is my reader? (Thunderbird) I get this messagge when I try to read the latest messages: Error! newsgroup server responded:no such article found Perhaps the article has expired <692702@forums.embarcadero.com> (33145) Click here to remove all expired articles sergio wrote: > Sorry if this is "out of topic"! but since some days ago I can'...

No general issues
Name: Jørn Email: narrovatgmaildotcom Product: Firefox Release Candidate Summary: No general issues Comments: I've been using the firefox 3.5 b 2,3,5 for some time now and i'm not dissapointed. Great speed. When i'm pressing the "bookmark" pulldown after a fresh start, i end up in the menu for "adding bookmarks" Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; da; rv:1.9.1b4) Gecko/20090423 Firefox/3.5b4 (.NET CLR 3.5.30729) From URL: http://hendrix.mozilla.org/ Note to readers: Hendrix gives no expectation of a response to th...

What generals generally do
Reading a McChrystal thread elsewhere, I came across someone quoting a US general http://en.wikipedia.org/wiki/Smedley_Butler > I spent 33 years and four months in active military service and > during that period I spent most of my time as a high class thug for > Big Business, for Wall Street and the bankers. In short, I was a > racketeer, a gangster for capitalism. I helped make Mexico and > especially Tampico safe for American oil interests in 1914. I helped > make Haiti and Cuba a decent place for the National City Bank boys to > collect revenues in. I ...

general issues
nw 6.5 sp 5 srvrs some with edir 8.7.3.7 and the other s edir 8.8.1 On some srvrs imanger is accessible but on others it is not. Doesn't seem to be any pattern. I used tid 700759 and am about to delete and recreate the CA object. Do certificates have to be periodically recreated? Is it to be expected that I should run pkidiag once a year? Are there routine maintenance procedures I should run on nw srvrs? The Health checks? I also notice that a few of the servers have alternate console screens in the console screen list. Is this the result of an abend? Thanks f...

Delphi 2009 automatic bug reports appear as Delphi.NET issues
For automatic bug reports, Delphi 2009 seems to put 'Delphi.NET' into the field for 'Project'. I will try to verify it and enter it in QC. Unfortunately this means I have to use the QC database for 'testing', but will delete my test entries if I have verified the problem. Michael Justin Michael Justin wrote: > For automatic bug reports, Delphi 2009 seems to put 'Delphi.NET' into > the field for 'Project'. AFAIK this is as expected. There is no project "RAD Studio" and so "Delphi.NET" has been choosen as proj...

Indy 10.1.15 (Delphi 2007) and POP3 dl issues (continuing IMAP4 thread with message DL issues)...
Hi, Are there known problems with Indy 10.1.15 and POP3 downloads...? I see that the same program compiled with Indy 10.1.15 and Indy 10.5.x behaves differently with POP3 servers and messages... In short, seems Indy 10.1.15 has the same issues with POP3 Indy 10.5.x has with IMAP4 and TidMessage/MessageClient, meaning that some messages or attachments do not get downloaded if there are dots at the begining of the line... Kind Regards, B. "Zlatibor Urosevic" <zlatibor.urosevic@gmail.com> wrote in message news:206328@forums.codegear.com... > In short...

General Javascript issue
Hello, I'm trying to work through some simple javascript using a book I purchased. Here is what I am trying to accompolish: I have a dropdown box, on the SelectedindexChange event I need script that will search through 10 radio buttons and depending upon which radiobutton is selected load the value of the dropdown box into textboxA and the text portion of the dropdown in TextboxB.   Since I am new to this I am trying to take small steps in the developement, so the function below is not really doing anything yet, I am just trying to assign it.  First I c...

Delphi Connection Issue?
I am creating a new ASE 11.9.2 on NT. This server will be used with a Borland Delphi client. In the past we have always named our ASE the same as the server/network name. So, for ex, the box is named server1 and the ASE is named server1. Now we want to name the box serverxx and the ASE on box serverxx something else, for example asexx. This works fine with creating ASE, just using the defaults. I can also connect via SQL Advantage with no problem. However, I can't get the BDE Delphi administrator to connect to ASE. Does anyone have any ideas? Is this even feasibl...

Rounding Issues in Delphi
Why delphi doesn't round well? Anybody there who have solutions? How can i round 28.255 - 28.259 as 28.26. How can i round 28.250 - 28.254 as 28.25? Roundto doesn't round well, I also use getting the fraction of it then add 0.01 if needed. Anyone who done this rounding problem accurately? Thanks. I think you need to read this http://docs.sun.com/source/806-3568/ncg_goldberg.html To summarise, computers don't handle float numbers very well. You probably need to change the datatype to currency or something else. > {quote:title=Jojo de la Cuesta wrote:}{qu...

mozilla general issues
Hi! I've been using mozilla for sometime. Right now on KDE/Debian Linux, with Mozilla 1.5. I also have it loaded on my NT box. I've seen the product continue to get better and better. But I have a number of issues which, I think, really need attention. I'm posting to this list to the general list in hopes that some of these issues can be resolved or I can be redirected to the right place. Some are perhaps open bugs; but, if so, have been so for too long. (note - hopefully I'm not sounding bitchy or preachy. would just like to get these issues resolved. any ...

delphi.general Timer
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --JivePart=_202d5.zeB8CwDOH5aMJzMl Content-Type: text/plain; charset="Utf-8" For Paolo Valle --JivePart=_202d5.zeB8CwDOH5aMJzMl Content-Type: application/octet-stream; name="SubroutineTimer.pas" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="SubroutineTimer.pas" dW5pdCBTdWJyb3V0aW5lVGltZXI7DQoNCmludGVyZmFjZQ0KDQpwcm9jZWR1cmUgU3RhcnRTdWJy b3V0aW5lVGltZXI7DQpmdW5jdGlvbiBHZXRTdWJSb...

general security issues
hi i'm doing an assignment on the security issues of active server pages. i was wondering if anyone could outline the major security issues for me. if you could i'd really appreciate it! biggest security issue in ASP? ASP Developers. without a question.RTFM - straight talk for web developers. Unmoderated, uncensored, occasionally unreadableJason Brown - MVP, IIS As Jason points out, crappy coders are the biggest problem :-) The crappy code tends to be vulnerable to the following types of attacks: -SSL Injection Attacks -Cross Site Scripting Attacks -Replay Attacks/Cookie thef...

generally good but some issues
Name: Paul Norris Email: norrisdotpatbtconnectdotcom Product: eBay Companion Summary: generally good but some issues Comments: I was using this to bid for an item the other day but the times shown on the Companion were around 10 minutes ahead of e-bay so the companion showed the auction had ended before it actuually had. Also when I click the update button at the bottom the first time it always comes back with an error - An error occurred trying to update the list. The second time I click it then usually updates it OK, but not always. Browser Details: Mozilla/5.0 (Win...

Web resources about - TBalloonHint issues - embarcadero.delphi.general

Resources last updated: 12/5/2015 11:45:44 PM