Print Page | Close Window

Finding xtpBarPopup

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=448
Printed Date: 08 May 2024 at 2:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Finding xtpBarPopup
Posted By: robs
Subject: Finding xtpBarPopup
Date Posted: 16 February 2004 at 2:21pm

Has anyone figured out how to find a commandBar of type xtpBarPopup?

In the rtfText_Click event of the Office2003 sample:

Set popup = CommandBars.Add("Popup", xtpBarPopup)
        With popup.Controls
             .Add xtpControlButton, ID_FILE_NEW, "&New", -1, False
             .Add xtpControlButton, ID_FILE_OPEN, "&Open", -1, False
             .Add xtpControlButton, ID_FILE_SAVE, "&Save", -1, False
       
             Set Control = .Add(xtpControlButton, ID_FILE_PRINT, "&Print", -1, False)
             Control.BeginGroup = True
       
             Set Control = .Add(xtpControlButton, ID_EDIT_CUT, "Cu&t", -1, False)
             Control.BeginGroup = True
       
             .Add xtpControlButton, ID_EDIT_COPY, "&Copy", -1, False
             .Add xtpControlButton, ID_EDIT_PASTE, "&Paste", -1, False
        End With
   
        popup.ShowPopup

 

...works to add a Popup, but CommandBars.Count doesn't seem to change.

If you cycle through the collection, it doesn't appear to be there. If you use .Find Control on CommandBars or CommandBars.ActiveMenuBar, it doesn't appear to be there.

Maybe that's why the Popup is added every time in the Click event, because it's temporary?

rob

 




Replies:
Posted By: Oleg
Date Posted: 23 February 2004 at 11:36am
It lives only while Event executed. it is created as Temporary.

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