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 » Tool Tip on the tools Collapse All
Subject Author Date
gnana bhaskar May 19, 2009 - 12:56 AM

Hello,



I am using ProfUIS223nd.dll,  in my application i am getting the tool tips according to the language. my application i am using 4 languages,  recently i have ported my application to Prof-UIS. I have created the dialogs , menus and toolbars in the english language only. then i have created the langaues dlls with string table. i have used the string from the resouce string only.



 



Now i am getting the problem with tooltips. i am not able to get tooltips of my tools.



In my application i have used for set the tooltips like below



    ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTW, 0, 0xFFFF, OnToolTipText)

    ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTA, 0, 0xFFFF, OnToolTipText)



BOOL CMainFrame::OnToolTipText(UINT nID, NMHDR *pNMHDR, LRESULT *pResult)

{



.......

}



these staments worked in MFC after porting to Prof-UIS these option are not working.



Can u please provide the solution for this.



thnx in advance



 

Technical Support May 19, 2009 - 1:31 PM

Prof-UIS tooltips are not just repainted tooltip common controls. They are windows written from scratch. All the tooltips displayed by toolbars and menus are based on the command description objects (the CExtCmdItem class) stored in the command profile (the CExtCmdProfile class) in the command manager (the CExtCmdManager class and the g_CmdManager global smart pointer variable). You can invoke the g_CmdManager->CmdGetPtr() code to get the pointer to the CExtCmdItem object describing some command. The CExtCmdItem::m_sTipTool property contains text for tooltip displayed over toolbar buttons. You need to reload the tooltips for all the commands.
How the command descriptions appear registered inside the command manager? The CExtCmdManager::UpdateFrom***() methods put the CExtCmdItem command descriptions into the command manager. These methods are typically invoked during the application initialization. The methods like CExtToolControlBar::LoadToolBar(), CExtMenuControlBar::LoadMenuBar(), CExtPopupMenuWnd::LoadMenu() and CExtPopupMenuWnd::UpdateFromMenu() are also updating the command manager. So, you can simply unregister all the commands in your command manager using the CExtCmdManager::CmdRemoveAll() method, change your preferred language and, finally, update the command manager from all the resources.
The LanguageSwitcher sample application demonstrates how to change the language of the running program on-the-fly when the customization subsystem is used by toolbars and menus.

gnana bhaskar May 19, 2009 - 12:57 AM

Hello,



I am using ProfUIS223nd.dll,  in my application i am getting the tool tips according to the language. my application i am using 4 languages,  recently i have ported my application to Prof-UIS. I have created the dialogs , menus and toolbars in the english language only. then i have created the langaues dlls with string table. i have used the string from the resouce string only.



 



Now i am getting the problem with tooltips. i am not able to get tooltips of my tools.



In my application i have used for set the tooltips like below



    ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTW, 0, 0xFFFF, OnToolTipText)

    ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTA, 0, 0xFFFF, OnToolTipText)



BOOL CMainFrame::OnToolTipText(UINT nID, NMHDR *pNMHDR, LRESULT *pResult)

{



.......

}



these staments worked in MFC after porting to Prof-UIS these option are not working.



Can u please provide the solution for this.



thnx in advance