We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PopupMenu with DropDownBarItem instead of ParentBarItem

Thread ID:

Created:

Updated:

Platform:

Replies:

44688 May 31,2006 10:42 PM UTC Jun 2,2006 02:42 PM UTC WinForms 3
loading
Tags: Tools
Terry Foster
Asked On May 31, 2006 10:42 PM UTC

Hello, Can you please help me figure out a way to display a DropDownBarItem as a context menu instead of a ParentBarItem. Essentially, I want to do exactly what a PopupMenu does with a ParentBarItem, but use a DropDownBarItem instead. Thank you, Terry

J.Nagarajan [Syncfusion]
Replied On June 1, 2006 09:21 AM UTC

Hi Terry, Popupmenu is similar to the submenu in a main menu. The submenu can be displayed only when clicked on the parentBarItem (say, File -> New). Hence there should a default parentBarItem to display the popupmenu when right-clicked. DropDownBarItem is used to host any custom control (not barItems). The DropDownBarItem can host a PopupControlContainer and you could place your custom control within this PopupControlContainer and set this container to the dropDownBarItem''s dropdown. You can only add dropdownBarItem into the items collection of the popupmenu to display it when right-clicked. Please let me know if you have any questions. Thanks for using Syncfusion products. Thank you, J.Nagaraj

Terry Foster
Replied On June 1, 2006 02:03 PM UTC

I''m not sure that we''re understanding each other. I do understand very well how ParentBarItem and DropDownBarItem work and have used both extensively. What I really want is to have a CheckedListBox control pop up like a typical context menu does. I know I could do this if the PopupMenu class worked directly with a DropDownBarItem object instead of a ParentBarItem. To clarify, I do NOT want to just add a DropDownBarItem that contains a CheckedListBox control to the ParentBarItem of a PopupMenu - I want just the CheckedListBox control to popup and nothing else. Can you help me figure out a way to do this? Thanks, Terry

J.Nagarajan [Syncfusion]
Replied On June 2, 2006 02:42 PM UTC

Hi Terry, I am afraid, in the current implementation of XPMenus Framework it is not possible to add a dropdownBarItem as a host BarItem for the popupmenu. You can use the popupControlContainer and place the checkedlistbox and using ShowPopup () method of PopupControlContainer,display the popup in the mouseup event of a control. Please refer the attached sample. In this sample when you right-click on the RichTextBox you can popup the CheckedListBox control. F44688-Checked_listBox.zip Thank you , J.Nagaraj

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;