Alan,
Hello everyone,
Another question. I've looked again to see if it's been asked before
but I don't think so.I am interested in using a panel that appears gradually, maybe
something like the animated dialogs on OS X. I'm not sure if the
"ribbons" on the latest MS office do this as well.My guess on how to handle this would be to have the panel instantiated
and when requested, a measure of the total time to appear (ie, "fast",
or "slow"), then divide this time into a number of sections (say 10 or
20), and measure the clock. At the intervals, a little bit more of the
panel appears until the time is up and the panel should be clearly
visible.One concern is that this process could be quite intensive for a
machine to do this. Would it need lower level coding? Obviously with
faster machines, this becomes less necessary; but not everyone is
using a fast machine. Another concern is of how to show only a bit of
a panel at a time. Say the panel is supposed to appear from the top of
its parent, only the bottom tenth or twentieth should be showing on
the first iteration which means setting and absolute coordinate with a
negative x-axis number. Is this possible? I'll have a test on my own
tonight to see how it goes, but was wondering what other people's
opinions on this were. If it is successful, would anyone be interested
in it?Alan
I've done a fade-in with one of my program's sub-windows, but I don't think that's quite what you want. Andrea's ToasterBox kind of does it in the reverse. It kind of folds up like windows blinds when it disappears. You can check out his source here: http://xoomer.alice.it/infinity77/main/ToasterBox.html
If you're interested in the fade-in effect, then you'll probably want to look at this: http://www.blog.pythonlibrary.org/?p=18
ยทยทยท
-------------------
Mike Driscoll
Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org