Popup Menu without Commandbar on Form |
Post Reply |
Author | |
LeeHayton
Senior Member Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
You need place it. Whitout CommandBars object you won't be able catch Execute/Update events.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |