Użytkownik Paul McNett napisał:
> Not sure why datanav-grids seem to be failing while the test grids seem to be
> working. Perhaps datanav.Grid overrides a needed function, I'll try to take a
> look
> later today.
>
>
Problem is that DrawObject.draw() method doesn't distinguish if call
comes from inside of OnPaint event or not.
It's important because PaintDC can't be used outside of OnPaint event,
and vice versa, ClientDC can't be used in there.
This is why my minimalistic patch works.
My suggestion is to change DrawObject.draw() call from
dabo.ui.fontMetricFromDrawObject(self)
to the
dabo.ui.fontMetricFromDC(dc, self.Text)
--
Regards
Jacek Kałucki
_______________________________________________
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]