Is it possible to determine the size of the groupbox header?
I'm looking to handle click processing on a groupbox, but I only want to handle the click if the user clicks on the header (or the amount of space the header takes/location of the header). Handling the click is not an issue, but I don't want to hard-code the size/location of the header in the app.
Hi Ron,
Rather than trying to determine the size, it would probably be better to use UIElements and determine what element was clicked. You want to know when the user clicks into the header element. So you can use the ElementFromPoint method to determine the element that was clicked.
Here's a link to some KB articles on ElementFromPoint:
Knowledge Base Results - ElementFromPoint
And this is a link to the Infragistics UIElementViewer which will let you see the elements in the control so you can ifentify which one you want.
Introducing the Infragistics UIElementViewer Utility
Thanks.
Prior to posting the question, I'd performed some some exploration of the groupbox instance looking for something to get me close to what I was after. It wasn't until after I posted the question I found the associated parts of the groupbox in the UIElement.
The full question was a bit more than determining if the user clicked on just the header. I was actually looking to see if the user clicked on the top of the groupbox (full width) down to the bottom of the header (header height). I managed to get it working once I found the header defined in the UIElements.
see also: http://community.infragistics.com/forums/p/27990/254972.aspx#254972
Ciao,
According to this forum thread title, I really need to KNOW the header size. How can I get that?
Thanks in advance
Gianni