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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

XPToolBar, dropdown?

Thread ID:





3205 Mar 7,2003 07:27 PM UTC Mar 11,2003 06:43 PM UTC WinForms 3
Tags: Tools
Thomas A. Anderson, Program Writer
Asked On March 7, 2003 07:27 PM UTC

Is there a way to make the buttons in the XPToolBar act like the toolbar buttons in Internet Explorer where when clicked, a little context menu is shown directly beneath the button? These buttons typically have a little down-arrow next to the image to indicate to the user that a dropdown context menu will be presented when clicked.

Administrator [Syncfusion]
Replied On March 11, 2003 10:59 AM UTC

Hi, This is supported already. When you add bar items through the designer into the XPToolBar through the Collection Editor, you can select a ParentBarItem type instead of the default BarItem type. Then set this ParentBarItem type's ParentStyle to DropDown. You can also add child BarItems into this ParentBarItem to fill the dropdown. Regards, Praveen Ramesh

Thomas A. Anderson, Program Writer
Replied On March 11, 2003 01:36 PM UTC

Thank you. What if the contents of the dropdown won't be known until the parent barItem is actually clicked? In other words, the "child" barItems would need to be generated at runtime.

Administrator [Syncfusion]
Replied On March 11, 2003 06:43 PM UTC

Hi, You could listen to the ParentBarItem's Popup event and add BarItems if necessary and then remove them in the PopupClosed event handler. Regards, Praveen Ramesh


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon