Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Popup menus in C#
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Popup menus in C#

 Post Reply Post Reply
Author
Message
petst View Drop Down
Newbie
Newbie


Joined: 11 December 2004
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote petst Quote  Post ReplyReply Direct Link To This Post Topic: Popup menus in C#
    Posted: 11 December 2004 at 1:21pm

Is there any sample code available for popup menus in CSharp?

Thanks !

Back to Top
Boyd View Drop Down
Senior Member
Senior Member


Joined: 08 December 2003
Location: United States
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boyd Quote  Post ReplyReply Direct Link To This Post Posted: 12 December 2004 at 10:11am

The following code can be used to create a basic popup menu:

// This instance created by Designer
private AxXtremeCommandBars.AxCommandBars commandBars;

// Create a Popup Menu
CommandBar popup;
popup = commandBars.Add("Popup Menu", XTPBarPosition.xtpBarPopup);

// Add Buttons
popup.Controls.Add(XTPControlType.xtpControlButton, 1000, "Caption", -1, false);

// Show the Popup at Point of a Click (where 'e' is the EventArgs
// passed from a mouse click event.  You can always specify the exact x-y coordinates.
popup.ShowPopup(0, e.X, e.Y);

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.188 seconds.