Print Page | Close Window

Crash with ContextMenuPresent in 10.1

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=3977
Printed Date: 15 September 2025 at 11:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Crash with ContextMenuPresent in 10.1
Posted By: markh
Subject: Crash with ContextMenuPresent in 10.1
Date Posted: 10 April 2006 at 11:34am

Hello

I have just upgraded to 10.1 and am experiencing a crash when setting ContextMenuPresent for a popup control. The code is as follows:

XtremeCommandBars::ICommandBarPopupPtr linethicknesspopup = toolbarcontrol->GetItem(2)->FindControl(XtremeCommandB ars::xtpControlSplitButtonPopup, CM_SETTHICKLINE, _variant_t((bool)TRUE), _variant_t((bool)FALSE));
            
if (linethicknesspopup)
{
   linethicknesspopup->CommandBar->SetPopupToolBar(VARIAN T_TRUE);
   linethicknesspopup->CommandBar->Title = _bstr_t(_T("Line Thickness Popup"));  
   linethicknesspopup->CommandBar->Customizable = VARIANT_FALSE;
   linethicknesspopup->CommandBar->ContextMenuPresent = VARIANT_FALSE;
}

If I remove the ContextMenuPresent = VARIANT_FALSE line there is no crash. As it happens I don't seem to actually need that line but I thought I'd let you know of the problem anyway.




Replies:
Posted By: Oleg
Date Posted: 10 April 2006 at 1:40pm

Hello,

ContextMenuPresent property applied only for Toolbars.



-------------
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