Hello Friends,
In my Application, i had defined a DockableControlPane. The problem is the Auto hide property.
When the DockableControlPane is visible, if the mouse pointer clicks on any editable control outside the
pane, it Auto hides.But When the mouse pointer clicks on a no editable controls, the
DockableControlPane stays visible and it doesn't hides.
In the Picture below the Red line marked area are no editable controls. Where as the Blue Line marked
area are text boxes which are editable.
Why this Happens.Please provide me guidance how to over come this.
from,
M.Thillai.
In order to clarify this a little bit more:Assume there is an Infragistics calculator control on the pane. Users click it to calculate whatever they want and after that the pane does not autoclose anymore due to the focus thingy already mentioned.
Focus can not always be taken away by clicking other parts of the application, because under certain circumstances the application does not contain focusable controls by this time, especially early in the lifecycle of the application.
The same applies to an UltraMonthViewMulti control on another pane, which also does not autoclose after a certain date is selected.
While I can indeed use (taking the UltraMonthViewMulti [referred as UMVM] control as example) the MouseEnter event of the UMVM to set a flag indicating that the mouse is over the UMVM and the MouseLeave event of the UMVM to check the flag and use the UltraDockManagers FlyIn() method to close it again I feel this seems a little bit complicated to implement for all the controls on the panes. Although this might not always be possible for more complicated controls (we use some usercontrols there too that are quite staggered).
Therefore the question for a more elegant way to close the pane if a user leaves the pane.As far as I am aware the DockableControlPane and the underlying DockableGroupPane do not have MouseEnter/MouseLeave events.
Any help or comment is kindly appreciated,cheers againAndy
Hi Mike,
I have the same issue. While I understand why the pane stays open I still try to close the pane when the cursor leaves the Pane.Is there a way to archive this? MouseEnter and MouseLeave events of the shown control within the pane do not work...
Any help is kindly appreciated,best regardsAndy
Thank you Mike.
I tried the FlyIn Method. It Worked well.
Thankyou Once Again.
From,
M.Thillai
The dock pane will remain visible if a control within it has focus. This is why clicking on an editable control on the Form auto-hides the pane. It is also why manually focusing an editable control on the Form auto-hides the pane. Both actions take focus away from the control within the pane. You can also manually auto-hide all panes by calling the FlyIn() method on the UltraDockManager.
Friends,
I Solved the issue, just by setting focus on a editable control while clicking no editable area. The AutoHide of the dockmanager works perfectly.