![]() |
CXTPControlEdit |
Post Reply ![]() |
Author | |
andy_t ![]() Newbie ![]() Joined: 19 October 2004 Location: Norway Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() Posted: 15 January 2005 at 6:08am |
Hi, I've added a CXTPControlEdit to a toolbar, but I'm having trouble setting the font for the edit control. In fact, when I set the font or call ModifyStyle on the edit control, nothing changes. I can override the CXTPControlEdit create call to create the edit control with my own flags, but I still can't set the font. Anyone know a way around this? .andy |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
The font set in CXTPPaintManager::DrawControl. try to override it.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
andy_t ![]() Newbie ![]() Joined: 19 October 2004 Location: Norway Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() |
Yeah, guess so, though it would be nice if DrawControl was declared virtual. But it's still a little messy if I want different fonts for different edit controls. I'm handling it right now by having a custom CXTPControlEdit class that simply ignores the WM_SETFONTs it doesn't like... thanks for the help! |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |