Add GetClassDefaultAttribute. Since it is static we need to put the

definition in all window classes so the right one will be called on
the C++ side of the fence.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-05-06 17:35:43 +00:00
parent 6dc779e818
commit 880715c9a9
22 changed files with 83 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ struct wxVisualAttributes
{
%extend {
wxVisualAttributes() { return new wxVisualAttributes; }
~wxVisualAttributes() {}
~wxVisualAttributes() { delete self; }
}
// the font used for control label/text inside it
@@ -1190,7 +1190,7 @@ exposed.");
DocDeclStr(
wxVisualAttributes , GetDefaultAttributes() const,
virtual wxVisualAttributes , GetDefaultAttributes() const,
"Get the default attributes for an instance of this class. This
is useful if you want to use the same font or colour in your own
control as in a standard control -- which is a much better idea