Revamped border handling.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-05-06 21:57:32 +00:00
parent 957f03699b
commit fe3d9123c6
16 changed files with 72 additions and 213 deletions

View File

@@ -42,6 +42,10 @@ bool wxStaticText::Create(wxWindow *parent,
long style,
const wxString& name)
{
// By default, a static text should have no border.
if ((style & wxBORDER_MASK) == wxBORDER_DEFAULT)
style |= wxBORDER_NONE;
if ( !CreateControl(parent, id, pos, size, style, wxDefaultValidator, name) )
return FALSE;