X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..d14e03f5b719ce6dbe4a0e81b22ae8436bd230ae:/src/univ/stattext.cpp diff --git a/src/univ/stattext.cpp b/src/univ/stattext.cpp index 2ea90b3ee2..6f1261c917 100644 --- a/src/univ/stattext.cpp +++ b/src/univ/stattext.cpp @@ -5,8 +5,8 @@ // Modified by: // Created: 14.08.00 // RCS-ID: $Id$ -// Copyright: (c) 2000 Vadim Zeitlin -// Licence: wxWindows license +// Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com) +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ - #pragma implementation "univstattext.h" -#endif - #include "wx/wxprec.h" #ifdef __BORLANDC__ @@ -42,6 +38,8 @@ // implementation // ============================================================================ +IMPLEMENT_ABSTRACT_CLASS(wxStaticText, wxControl) + // ---------------------------------------------------------------------------- // creation // ---------------------------------------------------------------------------- @@ -55,12 +53,12 @@ bool wxStaticText::Create(wxWindow *parent, const wxString &name) { if ( !wxControl::Create(parent, id, pos, size, style, wxDefaultValidator, name) ) - return FALSE; - + return false; + SetLabel(label); SetBestSize(size); - return TRUE; + return true; } // ----------------------------------------------------------------------------