[Wnd-commit] wnd/wnd/custom drivecombo.py,1.1,1.2 splitter.py,1.2,1.3
Status: Alpha
Brought to you by:
jurner
|
From: jürgen u. <cer...@us...> - 2005-07-23 19:25:09
|
Update of /cvsroot/wnd/wnd/wnd/custom In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29977 Modified Files: drivecombo.py splitter.py Log Message: bit of this and a bit of that Index: drivecombo.py =================================================================== RCS file: /cvsroot/wnd/wnd/wnd/custom/drivecombo.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** drivecombo.py 2 Jul 2005 09:05:43 -0000 1.1 --- drivecombo.py 23 Jul 2005 19:25:00 -0000 1.2 *************** *** 174,178 **** y= lp.rcItem.top + ((lp.rcItem.bottom-lp.rcItem.top- (h))/2) font.TextOutEx(dc, text, lp.rcItem.left+icoW+(font.GetAverageCharWidth(dc)), ! y, lp.rcItem, None, 'opaque') # # draw icon --- 174,178 ---- y= lp.rcItem.top + ((lp.rcItem.bottom-lp.rcItem.top- (h))/2) font.TextOutEx(dc, text, lp.rcItem.left+icoW+(font.GetAverageCharWidth(dc)), ! y, 'opaque', rect=lp.rcItem) # # draw icon Index: splitter.py =================================================================== RCS file: /cvsroot/wnd/wnd/wnd/custom/splitter.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** splitter.py 2 Jul 2005 09:05:43 -0000 1.2 --- splitter.py 23 Jul 2005 19:25:00 -0000 1.3 *************** *** 143,147 **** pt.ScreenToClient(self.GetParent()) ! ## final erasing of the lest poisition brfotre actually moving if self._custom_oldpos: self._custom_DrawFeedbackBar(*self._custom_oldpos) --- 143,147 ---- pt.ScreenToClient(self.GetParent()) ! ## final erasing of the last poisition brfore actually moving if self._custom_oldpos: self._custom_DrawFeedbackBar(*self._custom_oldpos) *************** *** 151,159 **** self.DragSplitter(pt.x - self._custom_dragPoint.x) else: - pass self.DragSplitter(pt.y - self._custom_dragPoint.y) ! #self._custom_DrawFeedbackBar(*self._custom_oldpos) ! ! self._custom_fDrag=False self._custom_dragPoint=None --- 151,157 ---- self.DragSplitter(pt.x - self._custom_dragPoint.x) else: self.DragSplitter(pt.y - self._custom_dragPoint.y) ! ! # reset self._custom_fDrag=False self._custom_dragPoint=None *************** *** 161,165 **** ! ## keyboard handling elif msg==self.Msg.WM_MOUSEACTIVATE: --- 159,163 ---- ! #----------------------------------------------------------- elif msg==self.Msg.WM_MOUSEACTIVATE: *************** *** 207,211 **** pat= (WORD*8)(0x00aa, 0x0055, 0x00aa, 0x0055, 0x00aa, 0x0055, 0x00aa, 0x0055) - hBm = gdi32.CreateBitmap(8, 8, 1, 1, byref(pat)) if hBm: --- 205,208 ---- *************** *** 223,229 **** user32.ReleaseDC(0, hDC) - - - --- 220,223 ---- *************** *** 240,250 **** self.RedrawClientArea() ! ! ! ! def _custom_MoveSplitter(self, offsX, offsY): ! # moves the splitter, taking care it is not moved beyound ! # the parent windows border. # # Return value: True if the splitter was actually moved. False otherwise --- 234,241 ---- self.RedrawClientArea() ! def _custom_MoveSplitter(self, offsX, offsY): ! # moves the splitter, taking care it is not moved outside the ! # parent windows bounds. # # Return value: True if the splitter was actually moved. False otherwise |