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 » Ribbon bar short cut keys & tooltip Collapse All
Subject Author Date
Vrinda Savargaonkar May 7, 2007 - 8:45 AM

Dear Sir / Madam

I am using prof uis v-2.64.
I am using MDI Ribbonbar in my application .
Now I want to know how to apply short cut keys to each Ribbonbar & ribbon page .
Also how to apply tooltip to each node of Ribbon Bar application .

Please give me a solution.
Thanks

Vrinda Savargaonkar May 9, 2007 - 7:50 AM

Dear Sir

I am still unable to download .

Please resend it .

Thanks.

Vrinda Savargaonkar May 8, 2007 - 6:53 AM

Dear Sir /Madam

I am unable to download . Please mail me ftp url & which password & username i use for ftp site.

Thanks

Technical Support May 10, 2007 - 8:01 AM

We sent the download information again, this time via gmail. Please let us know if you received it.

Technical Support May 8, 2007 - 12:10 PM

We sent you this info via email.

Technical Support May 7, 2007 - 11:53 AM

Please download the latest source code from our ftp server (profuis2641(2007-05-07).zip). This code update includes support for both ribbon screen tips and ribbon key tips. Now both key tips and screen tips are initialized in the updated ribbon samples. For example, here is the code for the Paste command:

CExtRibbonNode * pNodePaste =
            new CExtRibbonNode( ID_EDIT_PASTE, 0, NULL, 0, _T("Paste") );
                                          pNodePaste->CmdKeyTipSet( new CExtCustomizeCmdKeyTip( _T(’V’) ), false );
      pNodePaste->RibbonILE_RuleArrayGet().RemoveAll();
      VERIFY( pNodePaste->m_iconBig.m_bmpNormal.LoadBMP_Resource( MAKEINTRESOURCE(ID_EDIT_PASTE_BIG) ) );
      pNodePaste->m_iconBig.m_bmpNormal.Make32();
      pNodePaste->m_iconBig.m_bmpNormal.AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
              pCmdScreenTip = new CExtCustomizeCmdScreenTip;
              pCmdScreenTip->CaptionMainSet( _T("Paste") );
              pCmdScreenTip->TextMainSet( _T("Paste the contents\nof the Clipboard.") );
              pCmdScreenTip->BmpMainGet().LoadBMP_Resource( MAKEINTRESOURCE(ID_EDIT_PASTE_BIG) );
              pCmdScreenTip->BmpMainGet().Make32();
              pCmdScreenTip->BmpMainGet().AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
              pCmdScreenTip->CaptionSecondarySet( _T("Press F1 for more help.") );
              pCmdScreenTip->BmpSecondaryGet().LoadBMP_Resource( MAKEINTRESOURCE(ID_APP_ABOUT_16x16) );
              pCmdScreenTip->BmpSecondaryGet().PreMultiplyRGBChannels( false );
              pNodePaste->CmdScreenTipAttach( pCmdScreenTip );
              pCmdScreenTip = new CExtCustomizeCmdScreenTip;
              pCmdScreenTip->CaptionMainSet( _T("Paste") );
              pCmdScreenTip->TextMainSet( _T("Click here for more options such as\npasting only the values or\nformatting.") );
              pCmdScreenTip->BmpMainGet().LoadBMP_Resource( MAKEINTRESOURCE(ID_EDIT_PASTE_BIG) );
              pCmdScreenTip->BmpMainGet().Make32();
              pCmdScreenTip->BmpMainGet().AlphaColor( RGB(255,0,255), RGB(0,0,0), 0 );
              pCmdScreenTip->CaptionSecondarySet( _T("Press F1 for more help.") );
              pCmdScreenTip->BmpSecondaryGet().LoadBMP_Resource( MAKEINTRESOURCE(ID_APP_ABOUT_16x16) );
              pCmdScreenTip->BmpSecondaryGet().PreMultiplyRGBChannels( false );
              pNodePaste->CmdScreenTipAttach( pCmdScreenTip, false );
      pRibbonGroup->InsertNode(
            NULL,
            pNodePaste
            );
You can assign a key tip using one line of code (the CmdKeyTipSet() method call). A screen tip consists of two parts: main and secondary. Each part consists of the caption, bitmap and multiline text. All the parts are optional. The main part is located at the top of screen tip when the secondary part is at the bottom. If both parts are initialized, then the horizontal separator is displayed between them.