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]

Reply via email to