// Created: 09.02.01
// RCS-ID: $Id$
// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
-// Licence: wxWidgets licence
+// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
{ 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 void SetShaftPartState(wxScrollThumb::Shaft shaftPart,
int flag,
- bool set = TRUE);
+ bool set = true);
virtual void OnThumbDragStart(int pos);
virtual void OnThumbDrag(int pos);
// normalize the value to fit in the range
int NormalizeValue(int value) const;
- // change the value by the given increment, return TRUE if really changed
+ // change the value by the given increment, return true if really changed
bool ChangeValueBy(int inc);
// change the value to the given one