Print Page | Close Window

Preventing PopupToolBar from poping

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=5507
Printed Date: 04 October 2024 at 5:19pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Preventing PopupToolBar from poping
Posted By: iandenis
Subject: Preventing PopupToolBar from poping
Date Posted: 13 November 2006 at 11:56am
Hello,
 
I have a xtpControlSplitButtonPopup on my CommandBar and wanted to trap the event similar to ON_NOTIFY(TBN_DROPDOWN ...) and somehow force the ToolBar not to popup.  I have tried handling ON_XTP_INITCOMMANDSPOPUP and removed all control(s) from list.  In the best scenario, an empty toolbar would still popup.  Any proper solution to this?  Thx.
 
Ian



Replies:
Posted By: Oleg
Date Posted: 13 November 2006 at 3:57pm

Hello,

 
One of solution is override CXTPControlPopup and its
BOOL CXTPControlPopup::OnSetPopup(BOOL bPopup)


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: iandenis
Date Posted: 14 November 2006 at 9:55am
Hello,
 
I have tried wrapping the CXTPPopupToolBar and overrided the Popup method.  The behavior seems to be OK.  Would this be another solution?  Many thanks.


Posted By: Oleg
Date Posted: 14 November 2006 at 10:23am
yes, this is another soluition :)

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