Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - xtpControlSplitButtonPopup For Menu?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

xtpControlSplitButtonPopup For Menu?

 Post Reply Post Reply
Author
Message
g_j_a_i_n View Drop Down
Groupie
Groupie
Avatar

Joined: 27 August 2005
Status: Offline
Points: 86
Post Options Post Options   Thanks (0) Thanks(0)   Quote g_j_a_i_n Quote  Post ReplyReply Direct Link To This Post Topic: xtpControlSplitButtonPopup For Menu?
    Posted: 08 June 2006 at 3:00am

Hi,

I have successfully created a split button inside a menu (instead of toolbar) using the following code


.
.
CXTPCommandBars::TrackPopupMenu(pSubMenu, TPM_LEFTALIGN |TPM_RIGHTBUTTON
  , pntScreen.x, pntScreen.y, this, NULL);
.
.
.
.


int CMainFrame::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)
{

        if (lpCreateControl->nID == ID_MEMOBOARDSPANEL_NEWMEMOBOARD )
        {
            CXTPControlPopup* pFontControl = CXTPControlPopup::CreateControlPopup(xtpControlSplitButto nPopup);
            .
            .
            .
            .
            lpCreateControl->pControl = pFontControl;
            return TRUE;
        }
       
}




The problem is that when the menu item is selected, the popup menu (CXTPControlPopup) automatically appears even without the arrow button being clicked.

What I am expecting is that:  I should be able to select the menu item separately. And ONLY on clicking on the arrow in the menu item, the popup should appear. This is the behavior if the split button is created as part of the toolbar.

Please help. How do bring out this behavior

Regards,
Gautam Jain







Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 12 June 2006 at 8:50am

Hi,

Actually it is designed behaviour. Same you can see if you drag split button to menu in Office/Visual Studio .

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.