Ranorex

Is there a way to recognize Custom Controls ?

 
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexNet
View previous topic :: View next topic  
Author Message
Prashant



Joined: 08 Mar 2007
Posts: 2

PostPosted: Thu Mar 08, 2007 4:11 pm    Post subject: Is there a way to recognize Custom Controls ?
Does Ranorex provide an interface to implement a proxy kind of mechanism to recognise Custom Objects for MFC and .NET Based Applications?

After getting the control (Form.FindControlById()), is it possible to cast it to the particular custom type (adding a reference to the compiled class type for the custom control) so that we can get all the public properties and methods of the custom control?

It will be a great help if you can suggest directions for recognizing custom controls.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
admin
Site Admin


Joined: 05 Jul 2006
Posts: 351

PostPosted: Thu Mar 08, 2007 10:56 pm    Post subject:
We implemented a proxy mechanism to set and get the properties of .NET controls, we use it in RanorexSpyPro.

This approach doesn't work with MFC applications, the testcode runs in an other process space and the properties and methods of the C++ classes cannot be riched, we communicate with windows messages.

The Ranorex element approach supports a general way to access every kind of control and control elements. It should also work with custom controls.
Please try RanorexSpy with your application.

Jenö
Back to top
View user's profile Send private message Visit poster's website
Prashant



Joined: 08 Mar 2007
Posts: 2

PostPosted: Mon Mar 12, 2007 9:27 am    Post subject:
Thanks for the clarification.

We were specifically looking for MFC applications. Would follow the suggested approach for .NET custom controls.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
admin
Site Admin


Joined: 05 Jul 2006
Posts: 351

PostPosted: Tue Mar 13, 2007 12:06 am    Post subject:
The Ranorex element approach works with both MFC and .NET controls.
It supports a general way to access every kind of control, it should also work with custom controls.

Jenö
Ranorex Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexNet All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum