v17 Beta 1 CXTPEdit Theme Issue |
Post Reply |
Author | |
markr
Senior Member Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(1)
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.
|
|
markr
Senior Member Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
|
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.
|
|
astoyan
Admin Group Joined: 24 August 2013 Status: Offline Points: 304 |
Post Options
Thanks(0)
|
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
|
|
markr
Senior Member Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
|
Thanks, Alexander!
|
|
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 |