Hi Che,
I was considering using ToasterBox (gotten from AGW through svn) as a
notification method (instead of wxMessageDialogs, which require
interaction...as per Kevin Ollivier's suggestion) and noticed a rather
minor visual glitch that I'd thought I'd mention.
On my screen (XP, wxPython 2.8.10, Python 2.5), when the TB closes,
there are a number of horizontal lines drawn over the window that is
sitting behind the TB. This is seen in the demo. If you maximize the
demo and run the TB, the lines will appear on the grey bar of the demo
that says "Demo log messages". Using it in an app I have, the effect
is more pronounced, since the lines occur all down the height of the
TB on the window behind it.
I'm not familiar with toasterboxes generally, but I imagine these
lines ought not to be there and do add visual noise that is not
desirable. I don't mean to be picky and don't know if it is a
difficult fix, Andrea, but I thought I'd just mention it.
The issue stems from the fact that, when ToasterBox "scrolls" down
(i.e., it's closing down), I set its dimensions (in terms of widget
height, in pixels) and Refresh() it. However, for the widgets *behind*
the ToasterBox (your main panel, or other widgets) their screen area
becomes damaged (i.e., it needs a refresh). I did not put a call to
Refresh() for the widgets which may be behind the ToasterBox, as it is
not always cheap to refresh a window, and a priori ToasterBox knows
nothing about what kind of widget lives behind it. It could be a cheap
half-empty panel (so no harm in a Refresh() of that), but it could
also be a complex animated 3D VTK scene through OpenGL. And that is
less cheap to Refresh()
Anyway, there might be other solutions for that: I'll try and see if
the Refresh() thing solves the issue, but I am open to all suggestion
on how to properly redraw the damaged area of the widgets behind TB.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
==> Never *EVER* use RemovalGroup for your house removal. You'll
regret it forever.
The Doomed City: Removal Group: the nightmare <==
···
On 24 August 2010 18:15, C M wrote: