Hi Jogi,

Thank you again for your explaination. I have understood clearly, but When I 
refer to the OOo_Testtool.pdf, because I read this method 
"Nr Object.getState" below " 5.4.35.1 with Checkbox(es) ", I think I confused 
with this method. 

Cu,
Hong





Zhang Hong
Beijing Redflag Chinese 2000 Software CO.,LTD
Email:[EMAIL PROTECTED]
2008-02-21



发件人: Joerg Sievers
发送时间: 2008-02-20 17:48:35
收件人: [email protected]
抄送: 
主题: Re: [qa-dev] [Automation]question about toolbar

Hi Zhang Hong,

zhang Hong wrote:
> Actually, I want to get the State of image button on toolbar. I have read  
> "sMakeReadOnlyDocumentEditable()", and 
> The method "Object.getState" not only used for Checkboxes, but also for 
> button, Does this meanings?

<Object >.getState is not usable for Checkboxes. There you can use
<Object >.IsChecked.

<Object >.getState is used like in the example:
1. Count the buttons (_incl. seperators_) on the toolbar to find the
   correct button ( <Object >.GetItemCount)
2.1 Use  <Object >.getState(2) = 0 if you want to find out if it's NOT
   pressed.
2.2 If you want to find out if it is pressed use
     <Object >.getState(2) = 1

Cu,
Jogi

http://qa.openoffice.org/qatesttool
http://wiki.services.openoffice.org/wiki/User:Jsi

-- 
Sun Microsystems GmbH           Joerg Sievers
Nagelsweg 55                    Quality Assurance Engineer
20097 Hamburg


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to