Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Crash with ContextMenuPresent in 10.1
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Crash with ContextMenuPresent in 10.1

 Post Reply Post Reply
Author
Message
markh View Drop Down
Groupie
Groupie


Joined: 12 November 2003
Location: United Kingdom
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote markh Quote  Post ReplyReply Direct Link To This Post Topic: Crash with ContextMenuPresent in 10.1
    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.

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: 10 April 2006 at 1:40pm

Hello,

ContextMenuPresent property applied only for Toolbars.

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.027 seconds.