Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Popup Menu without Commandbar on Form
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Popup Menu without Commandbar on Form

 Post Reply Post Reply
Author
Message
LeeHayton View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 November 2005
Location: United Kingdom
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeeHayton Quote  Post ReplyReply Direct Link To This Post Topic: Popup Menu without Commandbar on Form
    Posted: 01 July 2009 at 10:32am
Hello, do you need to have a commandbar on the form in order to create a popup to be used anywhere on the form?
 
The code below works great but I can only do it with CommandBars1 (a commandbar placed on the form which serves no purpose except to create the popup later)
 
I would ideally have like to have not placed commandbar on the form at all but just stated something like Set Popup = CommandBars.Add...............
 
Is this possible or do I always have to have a commandbar on a form first?
 
thanks
Lee
 
 
 
 
    Dim Popup As CommandBar
   
    Set Popup = CommandBars1.Add("Popup", XtremeCommandBars.XTPBarPosition.xtpBarPopup)
       
        For x = 1 To 10
            Popup.Controls.Add xtpControlButton, x, "Button " & x
        Next
       
    Popup.ShowPopup
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: 06 July 2009 at 2:06am
Hi,
 
You need place it. Whitout CommandBars object you won't be able catch Execute/Update events.
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.141 seconds.