BCGSoft Forums
BCGSoft Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 BCGControlBar Pro for MFC Forums
 BCGControlBar Professional Edition
 PopupWindow bug?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List Insert Smilie

* Forum Code is ON


T O P I C    R E V I E W
Gemini Posted - 06/14/2022 : 02:03:48 AM
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?
2   L A T E S T    R E P L I E S    (Newest First)
Gemini Posted - 06/14/2022 : 06:32:07 AM
Thanks for the answer,

This kind of works, only when fading out, the text becomes black
Support Posted - 06/14/2022 : 03:31:54 AM

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 Forums © Copyright (c) 1998-2022 BCGSoft Co Ltd Go To Top Of Page
Snitz Forums 2000