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 » CExtRibbonBar question Collapse All
Subject Author Date
tera tera Feb 6, 2009 - 1:57 AM

Hello.


[Part1]


With the following screens, I call Program-FuncA.


However, PopupMenu is not non-displayed unless FuncA is finished

I want to make a menu non-display




[Part2]


Would the contribution of the following be already revised?

When is the exhibition of the revision?

http://www.prof-uis.com/prof-uis/tech-support/support-forum/bug-in-cextribbon-63275.aspx

Technical Support Feb 9, 2009 - 5:13 AM

Part 1: We need more details about the problem. You are clicking on any command item on some popup menu. It’s closed and handler method is invoked, right? What’s wrong?

Part 2: We guess we know what’s the problem is described on your screen shot. It can be reproduced on enough slow computer only. The popup menus of ribbon bar are closed using fade out animation effect. If we start to drag-n-drop the main frame window like demonstrated on your screen shot, then the currently opened popup menus are closed with the slow delay or with the very slow fade out animation until we stop drag-n-dropping of the main frame window. We must note, that Word 2007 and Excel 2007 have exactly the same menu behavior. So, we are not sure this is a bug because menus become closed finally.

tera tera Feb 9, 2009 - 6:13 PM



Hello.


>Part 1: We need more details about the problem. You are clicking on any command item on some popup menu. It’s closed and handler method is invoked, right? What’s wrong?


Will how to use be bad?




class CMainFrame : public CMuMdiFrame

                 , public  CExtDynamicBarSite

{

    //{{AFX_VIRTUAL(CMainFrame)

    public:

    virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);


  :

  :

  :

  :


BOOL CMainFrame::OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo)

{

 if ( CNxfWinEngine::OnCmdMsg( nID, nCode, pExtra, pHandlerInfo) == FALSE ){

     return FALSE;

    }




  :

  :

  :

  :




class CNxfWinEngine

{

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

//  メンバー

public:

    enum ECID

    {

        ECID_UNKNOW         = 0,    /// Unknow

        ECID_CLICK          = 1,    ///

        ECID_UPDATE_CMDUI   = 2,    ///

    };


    static BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);




  :

  :

  :

  :




BOOL CNxfWinEngine::OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo)

{

    CCmdUI * pCmdUI;

    pCmdUI = (CCmdUI *)pExtra;

    if( nCode == CN_COMMAND && pExtra == NULL  ){

        return OnCommands( CNxfWinEngine::ECID_CLICK , nID );

    }

    else if( nCode == CN_UPDATE_COMMAND_UI ){

        return OnCommands( CNxfWinEngine::ECID_UPDATE_CMDUI , nID , pCmdUI );

    }

    return TRUE;

}


BOOL CNxfWinEngine::OnCommands ( ECID eComIDType , UINT nID , CCmdUI * pCmdUI )

{

    switch( nID ){

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

    // Ribbon Tab

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

    case IDM_RIBBON_TAB_HOME:

        switch ( eComIDType ){

        case ECID_CLICK:

            OnRibbonTabHome();

            break;

        }

        break;

    case IDM_RIBBON_TAB_PANEL:

        switch ( eComIDType ){

        case ECID_CLICK:

            OnRibbonTabPanel();

            break;

        }

        break;

tera tera Feb 9, 2009 - 5:43 PM

Hello.


>Part 2: We guess we know what’s the problem is described on your screen shot.

>It can be reproduced on enough slow computer only.

>The popup menus of ribbon bar are closed using fade out animation effect.

>If we start to drag-n-drop the main frame window like demonstrated on your screen shot,

>then the currently opened popup menus are closed with the slow delay or with the very slow fade out animation until we stop drag-n-dropping of the main frame window.

>We must note, that Word 2007 and Excel 2007 have exactly the same menu behavior. So, we are not sure this is a bug because menus become closed finally.


 menu does not do fade-out.

 Even if I wait for 10 minutes, the menu is displayed.

 It is displayed forever.


Machine specifications

2.6Ghz

tera tera Feb 8, 2009 - 5:03 PM

Hello.


Please answer it.

I am troubled.