Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Finding xtpBarPopup
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Finding xtpBarPopup

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


Joined: 09 November 2003
Status: Offline
Points: 84
Post Options Post Options   Thanks (0) Thanks(0)   Quote robs Quote  Post ReplyReply Direct Link To This Post Topic: Finding xtpBarPopup
    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

 

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: 23 February 2004 at 11:36am
It lives only while Event executed. it is created as Temporary.
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.156 seconds.