 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Hans Peter Kunz Guest
|
Posted: Tue May 03, 2005 8:37 pm Post subject: Customcontrol: Canvas.Font property does not work |
|
|
Hi,
I derive my own component from TCustomControl. In the Paint procedure
I set my own font
Canvas.Font.Assign(FFontMouseOver);
and write some text with Canvas.TextOut or the WinAPI function
DrawText. The text is always written in the default font, not with the
font FFontMouseOver.
If I change to
Font.Assign(FFontMouseOver);
then it works. But this has other problems for me. Strange behaviour,
isn't it?
Why can't I use the canvas font property like the other VCL controls?
Please help! (I use BCB5 that means D5)
Thanks,
Hans Peter
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|