Hello GW,
 
this reminds me: some versions back I was trying to do this kind of thing to
see which choice of a listbox was the selected one, and this wasn't working,
and was confirmed as a bug in WE.  I think it wasn't working in either the
listbox control structure or the accessible info.
 
Can you tell me if seeing which choice is the selected one in a listbox is
now possible?
 
thanks.
 
Chip
 
 

  _____  

From: Stephen Clower [mailto:[email protected]] 
Sent: Wednesday, December 09, 2009 10:31 PM
To: [email protected]
Subject: Re: Text from a Menu


J.J.,

If you're looking at the menu through MSAA, you might test for something
like:

Set accObj = FocusedWindow.Accessible ' Assuming the focused window is a
menu, set the accObj variable to hold the Accessible representation of the
focused item.
If accObj.State = state_SYSTEM_CHECKED Then
' item is checked.
Else
' It isn't.
End If

Hope this helps.
Steve



On 12/9/2009 10:22 PM, J.J. Meddaugh wrote: 

Hello. I was wondering if someone could point me in the right direction of
how to obtain the state of a checkbox that's inside of a standard
application menu? I was looking all over the script manual, but apparently
not hard enough. 
Thanks. 
 
J.J. Meddaugh - ATGuys.com
A premier Licensed Code Factory and KNFB Reader distributor 


Reply via email to