On Sunday 13 July 2008, Marc Santhoff wrote: > Am Sonntag, den 13.07.2008, 21:10 -0400 schrieb Hal Vaughan: > > On Sunday 13 July 2008, Marc Santhoff wrote: > > > Am Sonntag, den 13.07.2008, 20:11 -0400 schrieb Hal Vaughan: > > > > There is a catch, of course: I want to select a directory, not > > > > a file, and it won't let me do that! > > > > > > So you probably want to exchange the css.ui.dialogs.FilePicker > > > for a .FolderPicker? > > > > In the XDL (I think I called it an IDL file earlier), I see > > filecontrol, not FilePicker and I tried to change it to > > directorycontrol with no success. > > You're right, no FolderPicker from basic dialogs. But I think it must > be relatively easy to use a button and instantiate the FolderPicker > from the event handling code. > > Sth. like: > > fp = CreateUNOService("com.sun.star.ui.dialogs.FolderPicker") > fp.setDisplayDirectory(whatever) > if fp.execute = css.ui.dialogs.ExecutableDialogResults.OK then > dir = fp.getDirectory > ' do what has to be done > endif
Thanks. I'll take a look at it tomorrow. I guess I will have to write the code. It's not much, so I'll set it up. I just don't feel like thinking about it tonight. I've got a 2 part Mission: Impossible episode on the DVR (one of the early ones when Barbara Bain was still on it) so I think I'm going to go enjoy that and not think about computer things for a short while. Thanks for finding that for me. I sometimes think I could create a career out of just writing macros and such in Java and OOo BASIC for OOo. Hal --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]