Panel transitions

I have a single frame and about 24 different panels that
make up the UI for some software I’m writing.

All the panels are hidden except one at a time, and the
panel that is visible takes up the entire frame.

Does that make sense?

I originally tried to instantiate each panel subclass only
as it was needed, but that was causing flickering too.

I remember reading (I think on this listserve)
that you should switch the panel by calling .Hide() on
one and .Show()

on the other. That being the case, I start the app w/
all panels instantiated and Hide all but my main menu, then Hide/Show as
needed.

I’m still seeing some flicker.

I’d like to be able to transition from one panel to
the other w/out flickering. Is
there some better way?

Can it be double buffered? I couldn’t find any examples for
this in the wiki or book.

Any help would be appreciated.

~chris

Chris Lafferty

Publisher Development Coordinator || EyeWonder, Inc.

clafferty@eyewonder.com || AIM: ewclafferty

Office: 678-891-1194 || Mobile:
404-273-6345 || Fax: 678-891-2017

EyeWonder.
Richer Media. Richer
Results.

www.eyewonder.com

Hi Chris,

I have a single frame and about 24 different panels that make up the UI for
some software I'm writing.

All the panels are hidden except one at a time, and the panel that is
visible takes up the entire frame.

Does that make sense?

I originally tried to instantiate each panel subclass only as it was needed,
but that was causing flickering too.

I remember reading (I think on this listserve) that you should switch the
panel by calling .Hide() on one and .Show()

on the other. That being the case, I start the app w/ all panels
instantiated and Hide all but my main menu, then Hide/Show as needed.

I'm still seeing some flicker.

Have you tried using:

yourFrame.Freeze()

# Here goes the code that show and hide things

yourFrame.Thaw()

? This should reduce the flickering.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On Jan 17, 2008 2:17 AM, Chris Lafferty wrote: