13.3.0: AddExpandButton not working |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
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/
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
While I'm at it... how do you catch "clicked expand button" event?
|
|
PokerMemento - http://www.pokermemento.com/
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
Thanks, checking it.
You need catch XTP_NM_REPORT_INPLACEBUTTONDOWN notification.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
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/
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |