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

How to find out BarItem position?

Thread ID:





59426 Apr 12,2007 01:44 PM UTC Apr 17,2007 02:24 PM UTC WinForms 2
Tags: Tools
Jonas Pettersson
Asked On April 12, 2007 01:44 PM UTC

Basically, what I want to do is very simple. I want to use a ParentBarItem but I want to distinguish a click on the ParentBarItem image and the drop down arrow.

If the user clicks on the image I want to perform an action directly without popping up the list of contained bar items.

Is there a way to do this?

Need I find out the position and size of the ParentBarItem itself and "guess" what should be a click on the arrow and what is not?

Jonas Pettersson
Replied On April 13, 2007 05:05 AM UTC

Is there perhaps a better object to use?

The DropDownBarItem seems suitable since the drop down arrow and button image are already separated, but if I could use this instead, how do I replicate the actual baritem dropdown like the one the ParentBarItem has built in?

I assumed that separating the arrow and the image clicks even on a bar item would be very common, so I am surprised to find no property on the ParentBarItem object that allow this by simply setting it to "True".

Any ideas, please?

Poly J [Syncfusion]
Replied On April 17, 2007 02:24 PM UTC

Hi Jonas,

Thanks for using Syncfusion Products.

You can change the ParentBarItem Style to Dropdrown by setting the Parent Style.

this.parentBarItem1.ParentStyle = ParentBarItemStyle.DropDown;

Please let me know if you need more assistance with this incident.

Best Regards,


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