Can't SetMinSize of wx.Dialog on Windows

Hi Brian,

dlgtitle.py (1016 Bytes)

···

On 13/04/2013 06:15, Brian White wrote:

I have a wx.Dialog subclass that calculates a minimum size based on the title text to ensure that the entire title is visible. I call self.SetMinSize((NNN,0)) with that value. Under Linux/GTK, this works fine. When I run the same code under Windows, the title-size is still calculated correctly but the dialog is sized according to only what it contains, ignoring the minimum-size I'm setting. The result is a title that gets cut off. I've tried doubling the min-size and using a constant like 800 but it doesn't change anything.

Am I missing something?

What is "SizeTitleBar" doing, i.e. returning?

Attached is inspired by your code and does the trick for me. I used SizedXX as that what I use all the time, which means I have less to worry about all this sizer stuff.

Werner