BCGSoft Forums
BCGSoft Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 BCGControlBar Pro for MFC Forums
 BCGControlBar Professional Edition
 PopupWindow bug?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Gemini

320 Posts

Posted - 06/14/2022 :  02:03:48 AM  Show Profile  Reply with Quote
Hello support,

I placed a groupbox in a popupwindow, and used custom colors.
The border-color of this groupbox is in de textcolor, but the text in de groupbox is still black.
This can be repeated in the popupDemo sample.
Place a groupbox in de IDD_DIALOG1 use Red (Custom) or Black.
The color of the text in the groupbox isn't the same as the text-color of the normal statics in the popup.
Is this a bug or how can I give this text the same color as its border?

II

Support

4175 Posts

Posted - 06/14/2022 :  03:31:54 AM  Show Profile  Visit Support's Homepage  Reply with Quote
Hi,

By default, the Popup Window supports the following controls:

* static text
* icon
* button
* link

and for these controls only, the popup window changes colors.

For other controls, you need to specify the custom colors matched to the popup window color theme. E.g., if you have a group (CBCGPGroup) in CBCGPPopupDlg-derived class:

m_wndGroup.m_clrText = m_pParentPopup->GetTextColor(this, FALSE, FALSE);

Best regards,

BCGSoft Technical Support
Go to Top of Page

Gemini

320 Posts

Posted - 06/14/2022 :  06:32:07 AM  Show Profile  Reply with Quote
Thanks for the answer,

This kind of works, only when fading out, the text becomes black

II

Edited by - Gemini on 06/14/2022 07:06:03 AM
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To:
BCGSoft Forums © Copyright (c) 1998-2022 BCGSoft Co Ltd Go To Top Of Page
Snitz Forums 2000