Fixed buttons having no border in wxUniv by default.
Buttons had a border of wxBORDER_NONE resulting in wxButton::DoDraw not drawing the button's border. Fixed by adding wxAnyButton::GetDefaultBorder() for wxUniv which returns wxBORDER_STATIC. Regression since r67931. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3797,6 +3797,7 @@ COND_USE_GUI_1_WXUNIV_1_GUI_CORE_HEADERS = \
|
||||
wx/generic/listctrl.h \
|
||||
wx/generic/mdig.h \
|
||||
wx/generic/statusbr.h \
|
||||
wx/univ/anybutton.h \
|
||||
wx/univ/app.h \
|
||||
wx/univ/bmpbuttn.h \
|
||||
wx/univ/button.h \
|
||||
|
@@ -2897,6 +2897,7 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
|
||||
wx/generic/listctrl.h
|
||||
wx/generic/mdig.h
|
||||
wx/generic/statusbr.h
|
||||
wx/univ/anybutton.h
|
||||
wx/univ/app.h
|
||||
wx/univ/bmpbuttn.h
|
||||
wx/univ/button.h
|
||||
|
@@ -5684,6 +5684,10 @@ SOURCE=..\..\include\wx\generic\wizard.h
|
||||
# PROP Default_Filter ""
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\wx\univ\anybutton.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\wx\univ\app.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
@@ -4836,6 +4836,9 @@
|
||||
<Filter
|
||||
Name="wxUniv Headers"
|
||||
UniqueIdentifier="{46168D7C-2783-50F3-AE9D-A740D5FF0B44}">
|
||||
<File
|
||||
RelativePath="..\..\include\wx\univ\anybutton.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\wx\univ\app.h">
|
||||
</File>
|
||||
|
@@ -6469,6 +6469,10 @@
|
||||
Name="wxUniv Headers"
|
||||
UniqueIdentifier="{46168D7C-2783-50F3-AE9D-A740D5FF0B44}"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\..\include\wx\univ\anybutton.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\wx\univ\app.h"
|
||||
>
|
||||
|
@@ -6465,6 +6465,10 @@
|
||||
Name="wxUniv Headers"
|
||||
UniqueIdentifier="{46168D7C-2783-50F3-AE9D-A740D5FF0B44}"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\..\include\wx\univ\anybutton.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\wx\univ\app.h"
|
||||
>
|
||||
|
@@ -176,7 +176,7 @@ protected:
|
||||
};
|
||||
|
||||
#if defined(__WXUNIVERSAL__)
|
||||
typedef wxAnyButtonBase wxAnyButton;
|
||||
#include "wx/univ/anybutton.h"
|
||||
#elif defined(__WXMSW__)
|
||||
#include "wx/msw/anybutton.h"
|
||||
//#elif defined(__WXMOTIF__)
|
||||
|
33
include/wx/univ/anybutton.h
Normal file
33
include/wx/univ/anybutton.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/univ/anybutton.h
|
||||
// Purpose: wxAnyButton class
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2000-08-15 (extracted from button.h)
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_UNIV_ANYBUTTON_H_
|
||||
#define _WX_UNIV_ANYBUTTON_H_
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Common button functionality
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class WXDLLIMPEXP_CORE wxAnyButton : public wxAnyButtonBase
|
||||
{
|
||||
public:
|
||||
wxAnyButton() {}
|
||||
|
||||
virtual ~wxAnyButton() {};
|
||||
|
||||
protected:
|
||||
// choose the default border for this window
|
||||
virtual wxBorder GetDefaultBorder() const { return wxBORDER_STATIC; }
|
||||
|
||||
private:
|
||||
wxDECLARE_NO_COPY_CLASS(wxAnyButton);
|
||||
};
|
||||
|
||||
#endif // _WX_UNIV_ANYBUTTON_H_
|
Reference in New Issue
Block a user