Print Page | Close Window

Bug in CXTPRibbonControlTab::SetSelectedItem?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=10388
Printed Date: 15 May 2024 at 2:54pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Bug in CXTPRibbonControlTab::SetSelectedItem?
Posted By: mrmathis
Subject: Bug in CXTPRibbonControlTab::SetSelectedItem?
Date Posted: 28 April 2008 at 6:18pm
I am running 11.2.0.  If I save my ribbon in a minimized state, then recreate it that way the next time I run my app, I get a "phantom" ribbon bar on the screen briefly.  It is empty, and goes away when I click just about anywhere.  I see the same behavior in the MDI ribbon sample if I deposit 1 in pRibbonBar->m_bMinimized in CMainFrame::CreateRibbonBar right after creating the ribbon.
 
I believe I have tracked down the problem this block of code in CXTPRibbonControlTab::SetSelectedItem:
 
    if (pRibbonBar->IsRibbonMinimized() && pTab)
    {
        ShowPopupBar(pRibbonBar->m_bKeyboardSelect);
    }
 
The call stack runs up through the ribbon creation code.  The presumption seems to be that the newly added controls need to be made active & visible, which is incorrect in this case.
 
I see that this block of code has been removed in the 12.0 beta.  Is doing that in my 11.2.0 source a valid fix?  Are there any other changes that need to accompany this one?
 
Thanks,
 
--Mike
 


-------------
--Mike



Replies:
Posted By: mrmathis
Date Posted: 28 April 2008 at 6:20pm
Here's a screen shot of the phantom ribbon in the MDI sample:
 


-------------
--Mike


Posted By: Oleg
Date Posted: 29 April 2008 at 12:44am
Hi,
Think it was fixed in 11.2.2 and can't reproduce with 12.0 also. Please update.


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


Posted By: mrmathis
Date Posted: 29 April 2008 at 10:03am
I am at a point in my development cycle that forbids moving to any new toolkits (Codejock or otherwise).  We are too close to releasing to risk introducing the unknown.  Can you verify whether removing that block of code is the complete fix so that I can patch my Codejock source until I am free to move to a newer version?
 
 


-------------
--Mike


Posted By: Oleg
Date Posted: 29 April 2008 at 2:38pm
Hi,
don't think its safety to just remove it :-(


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


Posted By: mrmathis
Date Posted: 08 May 2008 at 5:05pm
Do you have any suggestions for working around this in 11.2.0?

-------------
--Mike


Posted By: Oleg
Date Posted: 09 May 2008 at 1:24am
Hi,
Why you can't upgrade to 11.2.2 /12.0 ? I don't have another suggestions :(


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


Posted By: rdhd
Date Posted: 14 May 2008 at 2:52pm
May be due to the number of bugs I see reported in your forums regarding V12.


Posted By: Oleg
Date Posted: 15 May 2008 at 1:34am
Hi,
It was reports about betas. I didn't see any serious complain about release.


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



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