Various little tweaks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-07-20 00:14:28 +00:00
parent 249a57f443
commit 3b5ccda128
6 changed files with 15 additions and 10 deletions

View File

@@ -159,8 +159,8 @@ class wxGenButton(wxPyControl):
highlightClr = wxSystemSettings_GetSystemColour(wxSYS_COLOUR_BTNHIGHLIGHT)
self.shadowPen = wxPen(shadowClr, 1, wxSOLID)
self.highlightPen = wxPen(highlightClr, 1, wxSOLID)
##self.focusIndPen = wxPen(textClr, 1, wxUSER_DASH)
self.focusIndPen = wxPen(textClr, 1, wxDOT)
self.focusIndPen = wxPen(textClr, 1, wxUSER_DASH)
##self.focusIndPen = wxPen(textClr, 1, wxDOT)
def SetBackgroundColour(self, colour):
@@ -231,7 +231,8 @@ class wxGenButton(wxPyControl):
self.focusIndPen.SetColour(self.GetForegroundColour())
else:
self.focusIndPen.SetColour(self.GetBackgroundColour())
##self.focusIndPen.SetDashes([1,2,1,2]) # This isn't quite working the way I expected...
self.focusIndPen.SetDashes([1,1])
self.focusIndPen.SetCap(wxCAP_BUTT)
dc.SetPen(self.focusIndPen)
dc.SetBrush(wxTRANSPARENT_BRUSH)
dc.DrawRectangle(bw+2,bw+2, w-bw*2-4, h-bw*2-4)