MacSetTheme

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-04-15 19:28:25 +00:00
parent 9c605df769
commit 7efa87d202
2 changed files with 3 additions and 3 deletions

View File

@@ -38,8 +38,8 @@ public:
bool Ok(); bool Ok();
#ifdef __WXMAC__ #ifdef __WXMAC__
short GetMacTheme(); short MacGetTheme();
void SetMacTheme(short macThemeBrush); void MacSetTheme(short macThemeBrush);
#endif #endif
%pythoncode { def __nonzero__(self): return self.Ok() } %pythoncode { def __nonzero__(self): return self.Ok() }

View File

@@ -113,7 +113,7 @@ class GenStaticText(wx.PyControl):
backBrush = wx.Brush(clr, wx.SOLID) backBrush = wx.Brush(clr, wx.SOLID)
if wx.Platform == "__WXMAC__" and clr == self.defBackClr: if wx.Platform == "__WXMAC__" and clr == self.defBackClr:
# if colour is still the default then use the striped background on Mac # if colour is still the default then use the striped background on Mac
backBrush.SetMacTheme(1) # 1 == kThemeBrushDialogBackgroundActive backBrush.MacSetTheme(1) # 1 == kThemeBrushDialogBackgroundActive
dc.SetBackground(backBrush) dc.SetBackground(backBrush)
dc.SetTextForeground(self.GetForegroundColour()) dc.SetTextForeground(self.GetForegroundColour())