wxSingleChoiceDialog has no frame on WindowsXP

Hello,

as stated in the subject, I realized that wxSingleChoiceDialog has no frame on WindowsXP. Usually I develop under Linux and so I did not encounter the problem until I presented my work to my boss. Surprisingly, wxMultipleChoiceDialog does work under WindowsXP.
Any hints?
peter

Peter Wurmsdobler wrote:

Hello,

as stated in the subject, I realized that wxSingleChoiceDialog has no frame on WindowsXP. Usually I develop under Linux and so I did not encounter the problem until I presented my work to my boss. Surprisingly, wxMultipleChoiceDialog does work under WindowsXP.

Ug, that's just freaky... You can work around it by passing wxDEFAULT_DIALOG_STYLE as part of the flags.

Ah, I see it's been changed such that the default value of the style parameter is wxCHOICEDLG_STYLE and it is defined as

#define wxCHOICEDLG_STYLE \
     (wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxOK | wxCANCEL | wxCENTRE)

I'm not sure why it still seems to work without wxDEFAULT_DIALOG_STYLE on Linux, but it is probably an accident. :wink:

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!