Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - v17 Beta 1 CXTPEdit Theme Issue
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

v17 Beta 1 CXTPEdit Theme Issue

 Post Reply Post Reply
Author
Message
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 442
Post Options Post Options   Thanks (1) Thanks(1)   Quote markr Quote  Post ReplyReply Direct Link To This Post Topic: v17 Beta 1 CXTPEdit Theme Issue
    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.
Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
astoyan View Drop Down
Admin Group
Admin Group
Avatar

Joined: 24 August 2013
Status: Offline
Points: 284
Post Options Post Options   Thanks (0) Thanks(0)   Quote astoyan Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post Posted: 10 July 2015 at 11:18am
Thanks, Alexander!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.