// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "univslider.h"
#endif
{ return IsVert() ? wxVERTICAL : wxHORIZONTAL; }
// do we have labels?
- bool HasLabels() const { return (GetWindowStyle() & wxSL_LABELS) != 0; }
+ bool HasLabels() const
+ { return ((GetWindowStyle() & wxSL_LABELS) != 0) &
+ ((GetWindowStyle() & (wxSL_TOP|wxSL_BOTTOM|wxSL_LEFT|wxSL_RIGHT)) != 0); }
// do we have ticks?
- bool HasTicks() const { return (GetWindowStyle() & wxSL_TICKS) != 0; }
+ bool HasTicks() const
+ { return ((GetWindowStyle() & wxSL_TICKS) != 0) &
+ ((GetWindowStyle() & (wxSL_TOP|wxSL_BOTTOM|wxSL_LEFT|wxSL_RIGHT|wxSL_BOTH)) != 0); }
// implement wxControlWithThumb interface
virtual wxWindow *GetWindow() { return this; }