Page 1 of 1

Invoking XtraTabbedMdiManager

Posted: Tue May 04, 2010 4:11 pm
by Frank
Hi,

I tried to acces the close-Buttons of some tabPages, which are MDI-Forms [1]. But I can't cast System.Windows.Forms.Control into DevExpress.XtraTabbedMdi.XtraTabbedMdiManager. The XtraTabbedMdimanager contains a collection of tabPages (and I hope also a way to the close-Buttons or the
locations/sizes).
RanorexSpy ist only recognizing the whole workspace as System.Windows.Forms.MdiClient.

Image

Anyone who worked with Devexpress and these MDI-Forms? Any hints?


[1] http://www.devexpress.com/Help/?documen ... velup=true

Re: Invoking XtraTabbedMdiManager

Posted: Tue May 04, 2010 5:14 pm
by Ciege
I have this same issue but worked around it due to the way we have implemented the tabs allow for a Right-Click on the tab itself and select Close.
Another possibility for you is to get the current width of the tab and click on the right 1/4 of the tab (might need to adjust that) and *hope* the tab close gets clicked.

Re: Invoking XtraTabbedMdiManager

Posted: Wed May 05, 2010 9:42 am
by Support Team
Frank wrote:But I can't cast System.Windows.Forms.Control into DevExpress.XtraTabbedMdi.XtraTabbedMdiManager.
Please, make sure that you use the right type of that control, i.e. the type that is displayed for the "ControlType" attribute in Ranorex Spy when you spy the MDI control. In the DevExpress MDI sample I have the type is "System.Windows.Forms.MdiClient". XtraTabbedMdiManager is a component, not a control, and is therefore not a UI element visible in your form, but some background object that handles MDI controls.

Another possibility to close tabs is to use the Form.Close action/method on the individual tab pages, which are identified as Ranorex.Form instances.

Regards,
Alex
Ranorex Support Team