|
From: jeroen <je...@fo...> - 2003-07-19 01:57:04
|
On Friday 18 July 2003 09:42 am, Dimitris Servis wrote: > Hi all, > > when invoking the getFont() of FXDCWindow (inherited by FXDC) a pointer to > the font of FXDC is returned. In case noone set up a particular font for > FXDCWindow, NULL is returned. Shouldn't it return the font used for typing > in the window since drawText() will actually show text in the window? Is > there a workaround? > > Thanks a lot > > Dimitris Dimitris, Initially, no particular font is selected in FXDCWindow. So must onPaint() implementations first call dc.setFont() before any text is drawn. - Jeroen -- +----------------------------------------------------------------------------+ | Copyright (C) 09:20 04/20/2003 Jeroen van der Zijp. All Rights Reserved. | +----------------------------------------------------------------------------+ |