From: Kevin A. <ka...@us...> - 2004-07-27 15:43:24
|
Update of /cvsroot/pythoncard/PythonCard/tools/resourceEditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20019 Modified Files: resourceEditor.py resourceEditor.rsrc.py Log Message: added offset values for Mac Text and List components Index: resourceEditor.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/resourceEditor/resourceEditor.py,v retrieving revision 1.200 retrieving revision 1.201 diff -C2 -d -r1.200 -r1.201 *** resourceEditor.py 27 Jul 2004 00:37:27 -0000 1.200 --- resourceEditor.py 27 Jul 2004 15:43:14 -0000 1.201 *************** *** 470,474 **** self.startGlobalOffset = [self.startGlobalOffset[0] + wx.SystemSettings.GetMetric(wx.SYS_BORDER_X), self.startGlobalOffset[1] + wx.SystemSettings.GetMetric(wx.SYS_BORDER_Y)] ! #print "globalPosition", globalPosition #print "self.startGlobalPosition", self.startGlobalPosition --- 470,482 ---- self.startGlobalOffset = [self.startGlobalOffset[0] + wx.SystemSettings.GetMetric(wx.SYS_BORDER_X), self.startGlobalOffset[1] + wx.SystemSettings.GetMetric(wx.SYS_BORDER_Y)] ! elif wx.Platform == "__WXMAC__": ! # KEA 2004-07-27 ! # The SYS_EDGE and SYS_BORDER numbers don't seem to work on the Mac ! # so I just experimented to find the values below to prevent the components ! # from "hopping" when the user selects them ! if ['List'].count(t): ! self.startGlobalOffset = [self.startGlobalOffset[0] - 1, self.startGlobalOffset[1] - 1] ! elif ['PasswordField', 'TextField', 'TextArea'].count(t): ! self.startGlobalOffset = [self.startGlobalOffset[0] + 3, self.startGlobalOffset[1] + 3] #print "globalPosition", globalPosition #print "self.startGlobalPosition", self.startGlobalPosition Index: resourceEditor.rsrc.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/resourceEditor/resourceEditor.rsrc.py,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -d -r1.52 -r1.53 *** resourceEditor.rsrc.py 12 May 2004 22:02:10 -0000 1.52 --- resourceEditor.rsrc.py 27 Jul 2004 15:43:14 -0000 1.53 *************** *** 185,189 **** {'type':'MenuItem', 'name':'menuViewPropertyEditor', ! 'label':'Property Editor', 'checkable':1, 'checked':1, --- 185,189 ---- {'type':'MenuItem', 'name':'menuViewPropertyEditor', ! 'label':'Property Editor\tCtrl+P', 'checkable':1, 'checked':1, |