Hi,
I'm trying the possibilitys of the ultraExpandableGroupBox.
What I want to accomplish is when the mouse is over the component, then set it to expanded. I can accomplish this by the event mouseHover. But how can I change the control expanded to false when the user doesn't hover the component. Like a mouseEndHover event (which doesn't exist).
I would like this behaviour because in the groupbox I would place a Tree with my Menu. So when the user hovers the control the menu is shown, and when he leaves or choose a node in the treeview, hide the groupbox again. Or is there another control that is better for this.
Another thing is that I need two of these expandable groupboxes, and preferable at the left-side. The problem is that I can't place the headers next to each other in a vertical way. Horizental is possible because I can set the width of the control. The body of the control should be the height of the form, but the header only a part of the height.
Thanks for looking into my questions.
Kind regards
Bart S
Hi Bart,
Thank you for posting in our forums.
You can use the MouseLeaveElement in order to collapse the control. This way you will be able to detect when the mouse leaves the control so that you can collapse it. I have attached a sample demonstrating this approach.
As for your second request, I am afraid that I don’t understand what exactly you want to achieve. Please clarify your requirement. Preferably provide me with some screenshots or a small sample that demonstrates your issue.
I am looking forward to hearing from you.
Thanks for the quick answer.
I was trying the MouseLeaveEvent but that didn't work. The control expanded and immediately it collapsed. But maybe I did something wrong, I'll try it again.
For my second request, I attached an image in attachment. Hopefully it's clear what I would like to accomplish.
Thank you for the attached screenshot.
It seems to me that it will be easier to achieve this thing when using the UltraTabControl. You will need to adjust the width of the control in the MouseEnterElement and MouseLeaveElement events. This way it will look as the control expands when you hover over some of the tabs. Also you will need to use the DrawFilter interface to skip the drawing for some of the element unless the tabs are “expanded”. For more information about the draw filter interface please visit this link:
http://help.infragistics.com/Help/Doc/WinForms/2012.2/CLR4.0/HTML/Win_Draw_Filter.html
I have attached a sample demonstrating this suggestion.
Please let me know if you have any additional questions.
Hello Bart,
I am just checking about the progress of this issue. Let me know if you need my further assistance on this issue.
Thank you for using Infragistics Components.
Hello,
I'm sorry for my late answer. Due to illness the project has stopped for four months and last month I picked it up again.
You're solution did the trick and was exactly what we were looking for.
The only problem we have now is that we have a MDI form (UltraTabbedMdiManager) and at the left we want the TabControl. Docking the Tabcontrol to the left isn't working because every time the Tabcontrol gets expanded, the MDI container is replaced to the right of the TabControl. So we didn't docked the tabcontrol, but now it isn't on top of the MDI Manager. We would like to have the same behaviour like a menu on top of the window, or like a toolbar that have combo-boxes or so. They are always on top.
Bart S.