Hi
all. Yeah sorted this one...thanks to www.expertsexchange.com
If
anyone is interested, I can send them the code....its ACTUALLY quite easy
!
I had
about 95% of it, but as usual, that last 5% was the ellusive bit
!
Cheers, Jeremy Coulter
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jeremy Coulter
Sent: Monday, October 16, 2000 7:54 PM
To: Multiple recipients of list delphi
Subject: [DUG]: Accessing classes at run timeHi all.I have the need to write a wee app. that works a bit like Spy++ that comes with Visual Studio. With that, you can put the puse cursor over a control on an application, and it returns the name and the class of the control. I can use spy++ as I need to build a list of the classes as I find them.I have found 2 API calls called GetClassName and GetClassInfo, and GetClassName works, but I am not sure how to work it in with where the mouse is etc.I remeber seeing some code that showed you how to access the class of an object at runtime, just the other day, but I cant remember WHERE I saw it.If anyone knows where this code is, or how I can do the above, can they let me know please.Jeremy Coulter (manager)
Visual Software Solutions
145 Langdons Road
Christchurch
ph +64 3 3521595
fx +64 3 3521596
cell +21 2533214
http://www.vss.co.nz