wxSearchCtrl borderstyle broken

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
BuschnicK
Experienced Solver
Experienced Solver
Posts: 80
Joined: Thu Oct 13, 2005 1:30 pm
Contact:

wxSearchCtrl borderstyle broken

Post by BuschnicK »

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?
Post Reply