|
From: jeroen <je...@fo...> - 2003-07-19 14:20:27
|
On Saturday 19 July 2003 05:29 am, you wrote: > Thanks for the answer, > > >Initially, no particular font is selected in FXDCWindow. So must > > onPaint() implementations first call dc.setFont() before any text is > drawn. > > Well, I am pretty new to this, I am using the FXDCWindow to draw on a > canvas. I never call dc.setFont() but I can type on the canvas! I cannot > tell you how and why it works. It may only work on w2k in case there is > some system default font when you vall drawText(). I haven't tested it > on linux. Anyway, it's good to know that the font must be set before > typing. > > Thanks a lot!!! That's probably it. Perhaps this should be blocked off because I'm not sure the same is true on X11. - Jeroen -- +----------------------------------------------------------------------------+ | Copyright (C) 09:20 04/20/2003 Jeroen van der Zijp. All Rights Reserved. | +----------------------------------------------------------------------------+ |