Print Page | Close Window

CXTPControlEdit

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=1671
Printed Date: 03 June 2024 at 11:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPControlEdit
Posted By: andy_t
Subject: CXTPControlEdit
Date 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




Replies:
Posted By: Oleg
Date Posted: 17 January 2005 at 12:04am
The font set in CXTPPaintManager::DrawControl. try to override it.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: andy_t
Date Posted: 17 January 2005 at 7:19am

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!
.andy




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net