I have a portion of my gui window that has some
buttons on it, and I'd like to swap those buttons out
for a single large bitmap.
How to do this? Do I place them on different panels
and show/hide the panels themselves? Or do remove them
from sizers, place the new elements on the sizer and
then Layout()?
Thanks for any tips on this.
···
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
You could put all your buttons on one panel, and have the large
bitmap on another panel occupying the same sizer but hidden. Then to
swap you .Show() the bitmap panel and .Hide() the buttons panel
and then call Layout() on the panel upon which both of these secondary
panels are sitting. Reversing the hide/show puts it back.
Another tack would be sizer.Replace(), but I haven’t tried that.