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 General Discussion » The short key error in menu. (prof-uis 2.84) Collapse All
Subject Author Date
Seung Cheol Lee Apr 5, 2009 - 9:24 PM

I found the short key error in menu.


The short key is Alt + Key.


I made the test menu below.


==========================


&Test


        &1.Test  ----> Alt + 1


        &2.Test -----> Alt + 2


        &3.Test -----> Alt + 3


        &0.Test -----> Alt + 0


==========================


&1.Test, &2.Test and &3.Test operated well.


But &0.Test didn’t opeate.


It was impossible to use Alt+0 in menu.


Could you check the error.


 


Prof-UIS Ver. : 2.84


OS : Windows Vista


Lanuage : Korean


IDE : VS2005

Technical Support Apr 6, 2009 - 10:11 AM

Thank you for reporting this issue. Here is how the beginning of the CExtPopupMenuWnd::ItemFindByAccessChar() method looks like.

INT CExtPopupMenuWnd::ItemFindByAccessChar(
            __EXT_MFC_SAFE_TCHAR chrAccess,
            INT nStartIdx, // = -1
            BOOL bRestartAt0, // = TRUE
            BOOL bSearchDisplayedOnly // = TRUE
            ) const
{
            ASSERT_VALID( this );
            if( chrAccess == _T(’0’) )
                        return -1;
. . .

There is a typo in the if( chrAccess == _T(’0’) ) line of code. It really should be if( chrAccess == _T(’\0’) ):
INT CExtPopupMenuWnd::ItemFindByAccessChar(
            __EXT_MFC_SAFE_TCHAR chrAccess,
            INT nStartIdx, // = -1
            BOOL bRestartAt0, // = TRUE
            BOOL bSearchDisplayedOnly // = TRUE
            ) const
{
            ASSERT_VALID( this );
            if( chrAccess == _T(’\0’) )
                        return -1;
. . .