Search found 9 matches

by Schuco
Mon Apr 28, 2008 1:39 pm
Forum: Automation API
Topic: FindChildren with Infragistics-WinGrid
Replies: 5
Views: 3465

If Element.IgnoreInvisible is set, the FindChildren method should skip all invisible rows. That should enhance the search performance. Could you please check if the state of the invisible row elements is indeed State.Invisible ? bool isInvisible = (row.State & State.Invisible) != 0; Alex Ranorex Su...
by Schuco
Mon Apr 28, 2008 10:59 am
Forum: Automation API
Topic: FindChildren with Infragistics-WinGrid
Replies: 5
Views: 3465

Support Team wrote:You can set the Element.IgnoreInvisible property to true. That way, invisible elements will be ignored in the FindChild(ren) methods.

Regards,
Alex
Ranorex Support Team
That does not work faster.
by Schuco
Mon Apr 28, 2008 10:13 am
Forum: Automation API
Topic: FindChildren with Infragistics-WinGrid
Replies: 5
Views: 3465

FindChildren with Infragistics-WinGrid

It's no problem to retrieve the rows: Element[] rows = parent.FindChildren(Role.Row); My problem is when the Grid is filtered, I always get all rows and the rows only differ in their state ( Invisible ), for 4000 rows FindChildren runs at least 15 minutes, is there a workaround for retrieving only v...
by Schuco
Mon Apr 28, 2008 10:10 am
Forum: Automation API
Topic: Control.FindControlName
Replies: 4
Views: 3195

Support Team wrote:Two controls can have the same control name in Windows Forms, even if they have the same parent.
However, distinct names are usually enforced by the Forms Designer.
It is probably a good idea to use indices instead.

Michael
Ranorex Team
OK, I've done it with a loop.
Thanx
by Schuco
Wed Apr 23, 2008 12:53 pm
Forum: Automation API
Topic: Control.FindControlName
Replies: 4
Views: 3195

Same parent

They have the same parent, in this case the parent is a RowListEditor, the children both are from class "CellControl" named "CellControl". I'm not sure how this is possible. As you can see at the screenshot the string in [] is the control-name. There you can find "CellControl" twice and "CtlRowEdit"...
by Schuco
Wed Apr 23, 2008 9:41 am
Forum: Automation API
Topic: Control.FindControlName
Replies: 4
Views: 3195

Control.FindControlName

I've got some curious behavior in an sample - application:
There are 2 controls named the same, RanorexSpyPro cannot find them, I've found them by recursive walkthrough, how can I access them ?

With FindControlName I only get one of them.

Other Find-Versions do not work !
by Schuco
Fri Feb 22, 2008 8:12 am
Forum: Bug Reports
Topic: Mouse.ClickControl on button click-event does not work
Replies: 4
Views: 4868

I've tried it, nothing, same effect, but no click - event occurs !

OK, button does not get the focus !
button2 gets the focus, from then it works even on button1, the first "Ranorex" - click after a human click does not work
by Schuco
Thu Feb 21, 2008 10:56 pm
Forum: Bug Reports
Topic: Mouse.ClickControl on button click-event does not work
Replies: 4
Views: 4868

It's a c# windows form.
The mouse is moving to button1 and the button gets the focus, but the click-event does not occur.

I'll try your suggestions tomorrow !
Thank you !
by Schuco
Thu Feb 21, 2008 4:20 pm
Forum: Bug Reports
Topic: Mouse.ClickControl on button click-event does not work
Replies: 4
Views: 4868

Mouse.ClickControl on button click-event does not work

When performing following code on a button click ( button5 ) Ranorex.Form form = Ranorex.Form.Active; Ranorex.Button b1 = form.FindButton("button1"); Ranorex.Button b2 = form.FindButton("button2"); Ranorex.Mouse.ClickControl(b1); Ranorex.Mouse.ClickControl(b2); button1 gets the focus, but will not b...