Print Page | Close Window

Creating tear-off popups

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=4675
Printed Date: 20 June 2025 at 3:45pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Creating tear-off popups
Posted By: nighthawk
Subject: Creating tear-off popups
Date Posted: 27 July 2006 at 8:30pm
I want to create a tear-off popup menu like in the example below.  How do I set this up using code?  The only sample I found uses the Designer Studio to set it up but I need to do it with code.








Replies:
Posted By: Oleg
Date Posted: 28 July 2006 at 12:32pm
Hello,
from Office2003 sample:
 
Set ControlColorPopup = .Add(xtpControlSplitButtonPopup, ID_COLOR_POPUP, "Text Color")
        ControlColorPopup.CommandBar.Controls.Add xtpControlButton, ID_COLOR_BLUE, "Blue"
        ControlColorPopup.CommandBar.Controls.Add xtpControlButton, ID_COLOR_YELLOW, "Yellow"
        ControlColorPopup.CommandBar.Controls.Add xtpControlButton, ID_COLOR_GREEN, "Green"
        ControlColorPopup.CommandBar.Controls.Add xtpControlButton, ID_COLOR_RED, "Red"
        ControlColorPopup.CommandBar.Controls.Add xtpControlButton, ID_COLOR_PURPLE, "Purple"
        ControlColorPopup.CommandBar.Controls.Add xtpControlButton, ID_COLOR_CYAN, "Cyan"
        ControlColorPopup.CommandBar.Controls.Add xtpControlButton, ID_COLOR_ORANGE, "Orange"
        ControlColorPopup.CommandBar.Controls.Add xtpControlButton, ID_COLOR_MAGENTA, "Magenta"
       
        ControlColorPopup.CommandBar.SetTearOffPopup "Colors", IDR_COLORSBAR, 150


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