Fitting a bitmap to a sizer

Basically, I have a FlexGridSizer with one flex cell.
Inside of this cell, I have placed a bitmap.
Currently, I have the size of the bitmap set to the default size of
the cell (based on the default size of the window).
However, I want the scale of the bitmap to change when the user
changes the window size.

How can this be accomplished?
Is there some sort of GetCellSize function?

I'm not sure what you mean by flex cell. Do you mean like a wxGrid?
In anycase, just bind the resize event for the window/grid and carry
out your bitmap resizing in there.

ยทยทยท

On Sep 6, 3:41 am, Daniel Fontaine <danielfontain...@gmail.com> wrote:

Basically, I have a FlexGridSizer with one flex cell.
Inside of this cell, I have placed a bitmap.
Currently, I have the size of the bitmap set to the default size of
the cell (based on the default size of the window).
However, I want the scale of the bitmap to change when the user
changes the window size.

How can this be accomplished?
Is there some sort of GetCellSize function?

A simple way would be to first add a Panel to the grid cell, then draw the bitmap/add the StaticBitmap to the Panel. Then, get the cell size by calling Panel.GetSize() after everything has been laid out.

Ray Pasco