Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » min/max/close icon problem Collapse All
Subject Author Date
Dominik Braendlin Feb 28, 2011 - 12:01 AM

Dear Tech Support,

 

I have sent this message a while ago to the tech support but have not yet received any feedback. The issue described is very critical for our software. In order for us to release our application we need this issue with min/max/close to be fixed.

 

After the session last Thursday (20.1.2011) I thought for a moment that we could fix the min/max/close icon problem. We were able to fix some other problems but the min/max/close icon issue is still there.

 

1.       issue

 

Using a Prof-UIS sample I could reproduce the problem. Please find the sample in the attached zip file.

 

If you run the sample maximize the MDI child window. You will see the min/max/close icon in the upper right corner. Then press the “MyButton” to the left in the Home ribbon panel. The code that gets executed is almost the same as I use to Hide and Show some Ribbon bar groups dynamically. As soon as the code

 

//---------------------------------------------------------------------------

void CMainFrame::OnHomeMyButton()

{

  m_wndRibbonBar.SetButtons( NULL );

  m_wndRibbonBar.SetButtons( m_pRibbonNode );

 

  m_wndRibbonBar.UpdateAllCommandItems();

  m_wndRibbonBar.Ribbon_UpdateLayout();

 

  //VERIFY( m_wndRibbonBar.MenuInfoGetDefault()->AccelTableLoad( IDR_MAINFRAME ) );

  bool bSmallFileButtonIcon = g_PaintManager->Ribbon_IsSystemMenuIconPresent() ? true : false;

  LPCTSTR strFileButtonIconResID = bSmallFileButtonIcon ? (MAKEINTRESOURCE(IDB_BITMAP_UI_LOGO_ICON)) : (MAKEINTRESOURCE(IDB_BITMAP_SMALL_ICON));

  VERIFY( m_wndRibbonBar.Ribbon_FileButtonGet() -> m_iconForLargeMode.m_bmpNormal.LoadBMP_Resource( strFileButtonIconResID ) );

 

  m_wndRibbonBar.Invalidate();

}

 

gets executed the min/max/close icon disappear. These buttons are essential!

 

2.       Issue

 

Did you have any chance to work on those status bar icons? Remember the ones that are standard in Office 2010. You have been trying to change some code to match the background color but after some time we agreed that you might put it in some extra class.

 

Thanks so much for your support.

 

Regards,

Adrian