[EMAIL PROTECTED] wrote:
Great. So, if I understand correctly, I can simply use ThisComponent to address the form. So, I could use statements like
No, "ThisComponent" references the last document that had focus.
ThisComponent.getByName("mylistbox").Enabled=True
No, first you must "get" the form from the document. Even worse, you need to know what the form is. I do not remember what type of document you are using, but I do discuss forms in AndrewBase.odt. I do not have time to check (I have a large presentation on a topic I have not touched in four years and I need to speak to a crowd). My guess is that it will be something like:

ThisComponent.getDrawPage().getForms().getByName("formname").getByName("controlname").Enabled=True

I have not worked with forms for a while.

Is this correct? Also, from what I gather from your macro document, even if the macro is called from a dialog, a dialog is not considered the "active document", the form is. Is this correct?
I believe this is correct.
Thanks a lot Andrew, for all your contributions.
Your welcome.

--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html

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

Reply via email to