X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a152561c76dbed50d23f28d6e5761b4ece968156..3bc7a423ad05dad08e94db810719ae93e50ac64c:/include/wx/stattext.h?ds=sidebyside diff --git a/include/wx/stattext.h b/include/wx/stattext.h index ae85c17dad..97f7f54414 100644 --- a/include/wx/stattext.h +++ b/include/wx/stattext.h @@ -1,6 +1,19 @@ +///////////////////////////////////////////////////////////////////////////// +// Name: stattext.h +// Purpose: wxStaticText base header +// Author: Julian Smart +// Modified by: +// Created: +// Copyright: (c) Julian Smart +// RCS-ID: $Id$ +// Licence: wxWindows licence +///////////////////////////////////////////////////////////////////////////// + #ifndef _WX_STATTEXT_H_BASE_ #define _WX_STATTEXT_H_BASE_ +#include "wx/defs.h" + #if wxUSE_STATTEXT #include "wx/control.h" @@ -12,6 +25,16 @@ class WXDLLEXPORT wxStaticTextBase : public wxControl public: wxStaticTextBase() { } + // in wxGTK wxStaticText doesn't derive from wxStaticTextBase so we have to + // declare this function directly in gtk header +#if !defined(__WXGTK__) || defined(__WXUNIVERSAL__) + // wrap the text of the control so that no line is longer than the given + // width (if possible: this function won't break words) + // + // NB: implemented in dlgcmn.cpp for now + void Wrap(int width); +#endif // ! native __WXGTK__ + // overriden base virtuals virtual bool AcceptsFocus() const { return false; } virtual bool HasTransparentBackground() { return true; }