Print Page | Close Window

Popup Menu without Commandbar on Form

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=14663
Printed Date: 06 October 2024 at 8:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Popup Menu without Commandbar on Form
Posted By: LeeHayton
Subject: Popup Menu without Commandbar on Form
Date 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



Replies:
Posted By: Oleg
Date 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



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