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]