Re: Are you bound to a GUI control?

"Frank Schoenheit, Sun Microsystems Germany" <[email protected]> Fri, 12 Feb 2010 16:38:31 +0100
Newsgroups gmane.comp.openoffice.dba.user
Message-ID <[email protected]>
Hi Drew,

> That question is - how do I answer that question?
> ...
> Is there a way with the api now to do that?

Only by traversing the hierarchy of form components (starting with the
object delivered by getForms()), and checking on each element whether it
a) is a container, in which case you need to step down or b) has a
BoundField property, in which case you need to compare with what you're
looking for.

Ciao
Frank

-- 
- Frank Schönheit, Software Engineer         [email protected] -
- Sun Microsystems                      http://www.sun.com/staroffice -
- OpenOffice.org Base                       http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -