Print Page | Close Window

xtpControlSplitButtonPopup For Menu?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4373
Printed Date: 26 June 2024 at 1:52am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: xtpControlSplitButtonPopup For Menu?
Posted By: g_j_a_i_n
Subject: xtpControlSplitButtonPopup For Menu?
Date 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










Replies:
Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net