Click to See Complete Forum and Search --> : controls in ext. app


Warwulfi
June 5th, 2003, 09:23 AM
Hi,

is there any way to determine with API the Tab Order of controls in external applications ?

thx :)

pareshgh
June 5th, 2003, 01:45 PM
If you are using External OCX or DLL OR COM OBJECT OR A External Screen which isn't a .NET based screen then its little hard, but check the properties if it has
a
TabOrder or TabIndex .

Paresh

Warwulfi
June 5th, 2003, 03:33 PM
well, right.....

but I don't really see how I can check out the properties in external apps during runtime......

just for background : I'm doing some automated testing. And it would help if I had some additional params like the TabIndex I could pass to functions when I want to retrieve the handle of a specific control.

ulf

pareshgh
June 5th, 2003, 03:54 PM
if you are desinging those Controls in another language on your own you can provide properties. by rightclicking the control you can see the extended properties or go in dynamic advance properties and see there.

at runtime if you want to check the properties , methods, etc then you will need to use GetType and check the Assembly,
with that you can get methods, interfaces, fields etc.

Paresh

Warwulfi
June 6th, 2003, 05:12 AM
Hi Paresh,

thx for your precious advice :)

wasn't exactly what I was looking for, but gave me many new ideas to explore :)

finally I'll use the GWL_ID info to pass as additional param in my functions, it's less pain ;-)

Ulf

pareshgh
June 6th, 2003, 11:48 AM
yep you are right.
since what happens is ,
it depends upon OCX /ATL FULL COntrol developer wether they have supported GUI based/NON GUI based Properties and methods or not. !

when you generate interops within your Assembly with Add Reference it definitely constructs the proper wrapper classes and makes out dlls out if it and links to your code so that you have a namespace and a class to access with !

Paresh