Hi Jogi Thank you very much! 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?
Zhang Hong Zhang Hong Beijing Redflag Chinese 2000 Software CO.,LTD Email:[EMAIL PROTECTED] 2008-02-20 发件人: Joerg Sievers 发送时间: 2008-02-20 15:22:44 收件人: [email protected] 抄送: 主题: Re: [qa-dev] [Automation]question about toolbar Hi Zhang Hong, zhang Hong wrote: > Now I met a problem about getting the state of image button on format > toolbar. I used the method "nNr Toolbar.GetState nNr, nType", which lists > in the OOo_testtool.pdf. But when I used this method, the error as following > was giving:" FormatObjectbar : HelpID in ToolBox not found at > GetState ". And, When I can use the other methods for toolbar correctly, e.g. > "String Toolbar.GetText", "Nr Toolbar.GetItemCount". > Could anyone help me and give some suggestions? Thank you very much! you need to ask if the button itself not the bar. An example is in qa/qatesttool/global/tools/inc/t_doc2.inc where in sMakeReadOnlyDocumentEditable() the "Bearbeiten" (=English: Edit) button is being checked if it's pressed down or not. Hope that helps otherwise let me know. 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]
