On 1/19/11 5:41 PM, Ed Leafe wrote:
> dabo Commit
> Revision 6332
> Date: 2011-01-19 17:41:05 -0800 (Wed, 19 Jan 2011)
> Author: Ed
> Trac: http://trac.dabodev.com/changeset/6332
>
> Changed:
> U trunk/dabo/ui/uiwx/dGrid.py
> U trunk/dabo/ui/uiwx/dPemMixin.py
>
> Log:
> Changed the draw object routines to accept an optional dc for drawing.
>
> Changed the grid header drawing to use the same dc as the rest of the header.
> This may fix the issue in #1401, in which the captions are not visible under
> Windows.
The headers display, but look crappy, like they've been overdrawn a couple
times.
Clicking on a header makes them all go black, with the yellow sort indicator
now
appearing on both the old and newly-clicked-on header, with the following
traceback:
Traceback (most recent call last):
File "c:\dabo\dabo\ui\uiwx\dGrid.py", line 4061, in __onWxHeaderPaint
self._paintHeader(updateBox)
File "c:\dabo\dabo\ui\uiwx\dGrid.py", line 2646, in _paintHeader
dc=dc)
File "c:\dabo\dabo\ui\uiwx\dPemMixin.py", line 1589, in drawText
obj = self._addToDrawnObjects(obj, persist)
File "c:\dabo\dabo\ui\uiwx\dPemMixin.py", line 1617, in _addToDrawnObjects
self._redraw()
File "c:\dabo\dabo\ui\uiwx\dPemMixin.py", line 1642, in _redraw
obj.draw(dc)
File "c:\dabo\dabo\ui\uiwx\dPemMixin.py", line 3159, in draw
w, h = dabo.ui.fontMetricFromDrawObject(self)
File "c:\dabo\dabo\ui\uiwx\__init__.py", line 1520, in
fontMetricFromDrawObjec
t
bold=obj.FontBold, italic=obj.FontItalic)
File "c:\dabo\dabo\ui\uiwx\__init__.py", line 1560, in fontMetric
dc = wx.ClientDC(wind)
File "c:\python26\lib\site-packages\wx-2.8-msw-unicode\wx\_gdi.py", line
4794,
in __init__
_gdi_.ClientDC_swiginit(self,_gdi_.new_ClientDC(*args, **kwargs))
wx._core.PyAssertionError: C++ assertion "canvas" failed at ..\..\src\msw\dcclie
nt.cpp(140) in wxClientDC::wxClientDC(): invalid window in wxClientDC
Paul
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]