I've created my own simple custom sizer using PySizer. The docs suggest that
I only need to implement
two methods /CalcMin/, and /RecalcSizes/. I've done this, and I'm getting
the result I'm after. However, although /RecalcSizes/ seems critical to
achieving the desired layout, the value returned by /CalcMin/ seems
irrelevant: no matter what size I return, the layout is unaffected. Can
someone explain what /CalcMin/ is used for?
I've created my own simple custom sizer using PySizer. The docs suggest that
I only need to implement
two methods /CalcMin/, and /RecalcSizes/. I've done this, and I'm getting
the result I'm after. However, although /RecalcSizes/ seems critical to
achieving the desired layout, the value returned by /CalcMin/ seems
irrelevant: no matter what size I return, the layout is unaffected. Can
someone explain what /CalcMin/ is used for?
CalcMin is called at least when the sizer is a child of another sizer. You can think of it as the equivalent of a window's GetMinSize, or perhaps GetBestSize. CalcMin could also be a good place to put code that pre-calculates the layout or positions of items that you may use later in RecalcSizes if it makes sense to do so. I think that is what it was originally intended for.