Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Obtaining the control's handle
Message
De
09/09/2002 08:49:55
 
 
À
06/09/2002 13:12:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00674043
Message ID:
00698220
Vues:
14
>>How can get the IAccessible interface from a VFP7 control. I tried the following:
>>
>>loTestForm = CREATEOBJECT('form')
>>loTestForm.AddObject('Test','textbox')
>>loTestAccessible = GETINTERFACE(loTestForm.test, 'IAccessible')
>>
>>
>>But it does not work, because loTestForm.test is not a COM object.
>>Can you give an example please?
>
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fox7help/html/fotskusingautomatedtestharness.asp
>
>and
>
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fox7help/html/fourfaccessibilitybrowswerwindow.asp

From the links you provided I found the following
IAccessible Interface Quick Reference
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msaa/msaaccrf_4f51.asp

and
Sample VFP project (Accessibility Browser)
Home(2)+"..\Tools\MSAA\accbrow.pjx"

Some crucial API functions to use with accessibility are:
AccessibleObjectFromWindow
AccessibleChildren
and
GetRoleText

Thank you very much Rauh
(P.S. I actually do not have project with accessibility but I will keep this thread for future reference)
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform