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 » ShortKeys not working in the MenuBar after integration with ProfUIS Collapse All
Subject Author Date
SANKET DAS Jul 25, 2006 - 10:31 AM

The shortcut keys on the menu bar are not working with PROFUIS look that were working earlier.
Please help us urgently in this regard.

SANKET DAS Jul 27, 2006 - 8:36 AM

Thanks for your help..it worked

SANKET DAS Aug 4, 2006 - 12:40 AM

We have an application, where there is a menu bar and a tool bar.Now we also have a reports application which gets loaded on the main application
on dragging it to the work space.This reports application has its own menu bar and toolbar which gets assembled with that of the main application at runtime.Now the issue is that once we have the short cut keys of the main application working by implementing the following:
BOOL CMainFrame::PreTranslateMessage( MSG * pMsg )
{ if( m_wndMenuBar.TranslateMainFrameMessage( pMsg ) )
return TRUE;
return __PARENT_CLASS_NAME__::PreTranslateMessage( pMsg );
}

Now we have the short cut keys working in the main application. But when we open the reports , quite strangely the Short cut keys are working only when the focus is set i.e. mouse click on the reports on the workspace and not while the focus is elsewhere in the appplication.
This used to work properly before the implementation of PROFUIS but not anymore.

Please help us in this regard

Technical Support Aug 4, 2006 - 9:38 AM

The keyboard messages are sent to the single focused window in the system via the message loop of the thread where the focused window was created. If some application is active, some other application will never receive keyboard messages.

Technical Support Jul 26, 2006 - 9:26 AM

Please make sure you invoke the CExtMenuControlBar::TranslateMainFrameMessage() virtual method from the PreTranslateMessage() virtual method of your main frame window:

BOOL CMainFrame::PreTranslateMessage( MSG * pMsg ) 
{
    if( m_wndMenuBar.TranslateMainFrameMessage( pMsg ) )
        return TRUE;
    return __PARENT_CLASS_NAME__::PreTranslateMessage( pMsg );
}