Print Page | Close Window

v17 Beta 1 CXTPEdit Theme Issue

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=22658
Printed Date: 03 May 2024 at 6:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: v17 Beta 1 CXTPEdit Theme Issue
Posted By: markr
Subject: v17 Beta 1 CXTPEdit Theme Issue
Date Posted: 06 July 2015 at 1:25pm
I'm seeing a weird problem in XTP v17 beta 1 when using CXTPEdit under the following conditions:

- Using the Office 2010 theme (xtpControlThemeResource)
- Building release mode (does not happen in debug)
- The CXTPEdit control instance is disabled

When all of the above are true, the CXTPEdit control instance is not rendered correctly.

Here's what it looks like (correct) in DEBUG mode:



And here's what it looks like (incorrect) in RELEASE mode:



Please note that I use static linkage to XTP, so Office 2010 resources are included directly in my program .rc2 file.

Other points of interest:

1. This problem does NOT occur in XTP v16
2. This problem does NOT occur with the Office 2013 themes
3. This problem does NOT occur if the control is enabled

Regards,

Mark R.



Replies:
Posted By: markr
Date Posted: 09 July 2015 at 5:04pm
A quick update - I was mistaken when I said the above problem only occurs in release mode. It happens in both debug and release modes.


Posted By: astoyan
Date Posted: 09 July 2015 at 8:27pm
Hello Markr,

Thank you for bringing this to our attention. We've fixed the issue, you can easily fix it on you side by replacing:

CXTPEditThemeDefault::RefreshMetrics(pEdit);

to:

CXTPEditThemeOfficeXP::RefreshMetrics(pEdit);

int  CXTPEditThemeResource::RefreshMetrics() method.


Thank you.
Regards,
  Alexander Stoyan


Posted By: markr
Date Posted: 10 July 2015 at 11:18am
Thanks, Alexander!



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