Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - [solved] Disable Report with VS2015DARK theme
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[solved] Disable Report with VS2015DARK theme

 Post Reply Post Reply
Author
Message
cluster View Drop Down
Groupie
Groupie


Joined: 22 January 2015
Status: Offline
Points: 91
Post Options Post Options   Thanks (0) Thanks(0)   Quote cluster Quote  Post ReplyReply Direct Link To This Post Topic: [solved] Disable Report with VS2015DARK theme
    Posted: 15 January 2016 at 11:30am
Hello Support Team,

I want to disable a ReportControl window by EnableWindow(FALSE) in a VS2015Dark theme.
And it looks very bright. Is there a way to change the color depend on which theme is used?
Now the color is hard coded:

    if (!IsWindowEnabled() && GetPaintManager()->m_bGrayIfDisable)
    {
        CXTPClientRect rcClient(this);
        XTPImageManager()->DisableBitmap(*pDC, rcClient, RGB(250, 250, 250), RGB(128, 128, 128));
    }

for Dark theme I would prefer:
RGB(100, 100, 100), RGB(30, 30, 30)

Or could you make the Paint function virtual? Right now there is no way to change this color...

thanks!
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Answer Answer
Post Options Post Options   Thanks (1) Thanks(1)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 18 January 2016 at 2:48pm
Hello cluster,

Thank you for bringing this to our attention.
I'm glad to inform you that the issue has been fixed by adding new color properties to ReportPaintManager and appropriate key-values in INI files.

The fix will be available in the next beta or final release.

Regards,
 Oleksandr Lebed
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.125 seconds.