Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Empty hint windows



Permlink Replies: 8 - Last Post: Apr 16, 2015 1:03 AM Last Post By: Gerrit Beuze
Gerrit Beuze

Posts: 70
Registered: 10/16/00
Empty hint windows
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 10, 2015 3:49 AM
Hi,

A single user reports that the hint windows in a D2010 win-32 VCL application are empty:
the yellow window appears but contains no text. This has never been reported before
but he has installed the exe on a brand new Win7-64 PC and again hints appear empty.

Anyone an idea what may be causing this?

Note: these are based on a custom HintWindow class, but so far this has been working OK
for the last 8 years or so.

Thanks in advance,

Gerrit Beuze
ModelMaker Tools
Ian Barker

Posts: 98
Registered: 5/18/07
Re: Empty hint windows
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 10, 2015 12:57 PM   in response to: Gerrit Beuze in response to: Gerrit Beuze
I don't know the definite answer but two things come to mind - fonts
(scaling, clear type, large fonts) and graphics driver (for any alpha
blending).

If I was to take a guess though I bet he has two PCs there which he
happens to set up with something like large fonts or something similar.

Gerrit Beuze wrote:

Hi,

A single user reports that the hint windows in a D2010 win-32 VCL
application are empty: the yellow window appears but contains no
Peter Below

Posts: 1,227
Registered: 12/16/99
Re: Empty hint windows
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 13, 2015 10:10 AM   in response to: Gerrit Beuze in response to: Gerrit Beuze
Gerrit Beuze wrote:

Hi,

A single user reports that the hint windows in a D2010 win-32 VCL
application are empty: the yellow window appears but contains no
text. This has never been reported before but he has installed the
exe on a brand new Win7-64 PC and again hints appear empty.

Anyone an idea what may be causing this?

Note: these are based on a custom HintWindow class, but so far this
has been working OK for the last 8 years or so.

Is your hint window class also taking over the painting of the hint
window or its content? In that case I would suspect a pathological
color scheme, were text and background end up having the same color.
This can happen if you let the default painting fill the background but
paint the text yourself, with some implicit assumption on what the
background color will be...

--
Peter Below (TeamB)
Gerrit Beuze

Posts: 70
Registered: 10/16/00
Re: Empty hint windows
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 13, 2015 11:02 AM   in response to: Peter Below in response to: Peter Below
et the default painting fill the background but
paint the text yourself, with some implicit assumption on what the
background color will be...

Hi,

It seems the text itself is empty. I see a small (yellow) hint window.
Th rest seems the be default colors.

Gerrit Beuze
ModelMaker Tools
Peter Below

Posts: 1,227
Registered: 12/16/99
Re: Empty hint windows
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 13, 2015 11:38 AM   in response to: Gerrit Beuze in response to: Gerrit Beuze
Gerrit Beuze wrote:

et the default painting fill the background but
paint the text yourself, with some implicit assumption on what the
background color will be...

Hi,

It seems the text itself is empty. I see a small (yellow) hint window.
Th rest seems the be default colors.

Gerrit Beuze
ModelMaker Tools

Weird, that sounds as if something is intercepting the CM_SHOWHINT
message and nils the hint string it carries.
Never seen something like it, sorry. Oh, does your custom hint window
class have any message handlers itself or its own window proc?

--
Peter Below (TeamB)
Gerrit Beuze

Posts: 70
Registered: 10/16/00
Re: Empty hint windows
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 14, 2015 9:23 AM   in response to: Peter Below in response to: Peter Below
Gerrit Beuze wrote:

et the default painting fill the background but
paint the text yourself, with some implicit assumption on what the
background color will be...

Hi,

It seems the text itself is empty. I see a small (yellow) hint window.
Th rest seems the be default colors.

Gerrit Beuze
ModelMaker Tools

Weird, that sounds as if something is intercepting the CM_SHOWHINT
message and nils the hint string it carries.
Never seen something like it, sorry. Oh, does your custom hint window
class have any message handlers itself or its own window proc?

No message handlers, no own wnd proc. Just overriding some methods.

Things get more strange:
The customer has sent a video in which you can clearly see that the hint window is painted
OK once, and then within a fraction of a second is repainted empty = without text.
Window size remains identical.

Gerrit Beuze
ModelMaker Tools
Peter Below

Posts: 1,227
Registered: 12/16/99
Re: Empty hint windows
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 14, 2015 11:06 AM   in response to: Gerrit Beuze in response to: Gerrit Beuze
Gerrit Beuze wrote:

Gerrit Beuze wrote:

et the default painting fill the background but
paint the text yourself, with some implicit assumption on what
the background color will be...

Hi,

It seems the text itself is empty. I see a small (yellow) hint
window. Th rest seems the be default colors.

Gerrit Beuze
ModelMaker Tools

Weird, that sounds as if something is intercepting the CM_SHOWHINT
message and nils the hint string it carries.
Never seen something like it, sorry. Oh, does your custom hint
window class have any message handlers itself or its own window
proc?

No message handlers, no own wnd proc. Just overriding some methods.

Which ones?

Things get more strange:
The customer has sent a video in which you can clearly see that the
hint window is painted OK once, and then within a fraction of a
second is repainted empty = without text. Window size remains
identical.

If you cannot reproduce this weird behaviour on a machine you can debug
on this will be hard to track down, i'm afraid. I would instrument your
custom THintwindow descendent with some logging (to file), to be able
to determine the sequence of method calls the window receives. Log
object self reference, window handle and Caption in an overriden
ActivateHint method (and its parameters) and an overriden Paint method,
before calling the inherited ones, for instance.


--
Peter Below (TeamB)

Gerrit Beuze

Posts: 70
Registered: 10/16/00
Re: Empty hint windows
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 15, 2015 12:07 AM   in response to: Peter Below in response to: Peter Below

If you cannot reproduce this weird behaviour on a machine you can debug
on this will be hard to track down, i'm afraid. I would instrument your
custom THintwindow descendent with some logging (to file), to be able
to determine the sequence of method calls the window receives. Log
object self reference, window handle and Caption in an overriden
ActivateHint method (and its parameters) and an overriden Paint method,
before calling the inherited ones, for instance.

I'll instrument it by painting different background colors.
Se eif that reveals anything.

Thanks for the help so far. I just wanted to be sure it's not a common known thing.

Gerrit Beuze
ModelMaker Tools
Gerrit Beuze

Posts: 70
Registered: 10/16/00
Re: Empty hint windows
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 16, 2015 1:03 AM   in response to: Gerrit Beuze in response to: Gerrit Beuze
A single user reports that the hint windows in a D2010 win-32 VCL application are empty:
the yellow window appears but contains no text. This has never been reported before
but he has installed the exe on a brand new Win7-64 PC and again hints appear empty.
Anyone an idea what may be causing this?

For the records:
By coincidence we found out the empty hint window problem is caused by running Teamviewer.
Disabling Teamviewer makes the hint work OK.
This should make it possible to fix it too,

Thanks all,

Gerrit Beuze
ModelMaker Tools
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02