I'm making a basic image browser, and am confronting the age-old
problem of how to reduce flicker when advancing from image to image.
My main question is how to combine a DC with the other elements on the
page.
As the sketch shows, the image will be shown in the center, with
"next" and "previous" buttons on either side, and some text above that
shows the current position in the directory.
I'm wondering how people would lay this out? Regular bitmap buttons
for the buttons and a DC for the image in the center?
I'm making a basic image browser, and am confronting the age-old
problem of how to reduce flicker when advancing from image to image.
My main question is how to combine a DC with the other elements on the
page.
As the sketch shows, the image will be shown in the center, with
"next" and "previous" buttons on either side, and some text above that
shows the current position in the directory.
I'm wondering how people would lay this out? Regular bitmap buttons
for the buttons and a DC for the image in the center?
Almost. Where you say "a DC for the image in the center" I would say "a custom window class in the center that binds the EVT_PAINT event and draws the image using a wx.PaintDC"
Would you place all the objects on a panel?
Yes.
Or use multiple panels?
There probably isn't any need for that, other than the one where the image is drawn and the one that is the parent of all of them.