ARGH! I just spend an hour trying to figure out why my style flags would simply be ignored by the wxSearchCtrl. I finally stepped through the code into the Create method and what do I find?!
Code: Select all
int borderStyle = wxBORDER_SIMPLE;
#if defined(__WXMSW__)
borderStyle = GetThemedBorderStyle();
if (borderStyle == wxBORDER_SUNKEN)
borderStyle = wxBORDER_SIMPLE;
#elif defined(__WXGTK__)
borderStyle = wxBORDER_SUNKEN;
#endif
WTF?! Why bother taking a style flags argument when you then go on and simply ignore it. Why is the extra WXMSW logic there in the first place? What's wrong with sunken borders?