Print Page | Close Window

13.3.0: AddExpandButton not working

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=16335
Printed Date: 21 December 2024 at 10:06pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: 13.3.0: AddExpandButton not working
Posted By: znakeeye
Subject: 13.3.0: AddExpandButton not working
Date Posted: 02 March 2010 at 4:02pm
Windows 7 x64, Classic mode.
 
pColumn->GetEditOptions()->AddExpandButton(TRUE);
Can't see the expand button.
 
Even tried this in paint manager:
m_bShowNonActiveInPlaceButton = TRUE;
 
Still no button...
 
Enabled Aero. Button appears, but only if m_bShowNonActiveInPlaceButton == TRUE.
 
Hence, two bugs:
1) Expand button is never visible in Classic mode.
2) Expand button is visible in skinned mode if m_bShowNonActiveInPlaceButton is set.
 
The error is quite obvious...
 
BOOL CXTPReportPaintManager::DrawInplaceExpandButton(CDC* pDC, CRect* pRc)
{
    if ((!pDC->IsPrinting() || m_bPrintGroupRowIcon)
        && m_bShowNonActiveInPlaceButton
        && m_bThemedInplaceButtons
        && m_themeButton.IsAppThemed())
    {
        pDC->FillSolidRect(pRc, GetXtremeColor(COLOR_3DFACE));
        m_themeButton.DrawThemeBackground(*pDC, BP_PUSHBUTTON, PBS_NORMAL, pRc, NULL);
        return TRUE;
    }
    return FALSE;
}
 


-------------
PokerMemento - http://www.pokermemento.com/



Replies:
Posted By: znakeeye
Date Posted: 02 March 2010 at 4:06pm
While I'm at it... how do you catch "clicked expand button" event?

-------------
PokerMemento - http://www.pokermemento.com/


Posted By: Oleg
Date Posted: 03 March 2010 at 2:20am
Hello,
 
Thanks, checking it.
 
You need catch XTP_NM_REPORT_INPLACEBUTTONDOWN notification.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 03 March 2010 at 5:26pm
Just tried this (skinned mode):
 
pColumn->GetEditOptions()->AddComboButton(TRUE);
wndReport.GetPaintManager()->m_bShowNonActiveInPlaceButton = TRUE;
 
But the combo buttons are not visible until I click the items. Why? :(


-------------
PokerMemento - http://www.pokermemento.com/



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net