|
From: Dimitris S. <se...@de...> - 2003-07-19 10:30:38
|
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!!! Dimitris |