On Nov 26, 2006, at 10:08 AM, Micah Bly wrote:
I need some help with a cross-platform issue I'm having. I have a
window, with a canvas that acts as a "tooltip" type floating
thingie. If the user mouses over a particular thing in an edit
field or listbox, it shows up with some more information about the
word/etc the mouse is over. What I used is a canvas attached to
the window, that is hidden and unhidden, moved around, and resized
as necessary to fit contents. In the paint event of the canvas, it
draws the background (a fillrect) and some text. It works fine on
the mac. But on the Windows builds, it's very spotty. I have a
hard time describing it. When over a listbox, it works maybe 75%
well. Over a text box, it maybe works 25%. Sometimes, you can
actually see the entire thing. But most of the time, it's either
there for a milisecond then gone, or it's corrupted, and/or its
corrupting the text in the editfield underneath it.
Do I need to refresh it in some way? Why does it work on the mac,
but not on Windows?
Perhaps it is a double-buffering issue, which is done automatically
on the Mac but not on Windows. You can check this out by first
creating a Picture object, drawing your content into the Picture,
then draw the Picture object onto the canvas.
Best,
Jack
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>