[users] Re: How to get form name from a macro not called by the form?

2007-06-19 Thread adam . schirmacher
Great. So, if I understand correctly, I can simply use ThisComponent to address the form. So, I could use statements like ThisComponent.getByName(mylistbox).Enabled=True Is this correct? Also, from what I gather from your macro document, even if the macro is called from a dialog, a dialog

[users] Re: How to get form name from a macro not called by the form?

2007-06-19 Thread adam . schirmacher
Actually, I am not sure what ThisComponent is. It's property tree doesn't look like a form, and I can't use any of the normal properties like ThisComponent.getByName(). Any advice? - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [users] Re: How to get form name from a macro not called by the form?

2007-06-19 Thread Andrew Douglas Pitonyak
[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