[api-dev] Interacting With Dialogs from Basic

2008-07-13 Thread Hal Vaughan
I want to do a few things with a dialog from Basic other than just get the values of some controls. I can find references for using dialogs and objects from Java, but I can't find the API reference for OOo Basic. My guess is that this reference will answer all my questions. 1) I'd like to be

Re: [api-dev] Interacting With Dialogs from Basic

2008-07-13 Thread Oliver Brinzing
Hi Hal, I want to do a few things with a dialog from Basic other than just get the values of some controls. maybe this helps: REM * BASIC * Dim oDialog Sub Main oDialog = CreateUnoDialog(GlobalScope.DialogLibraries.Standard.Dialog1) oDialog.Execute() End Sub Sub

Re: [api-dev] Interacting With Dialogs from Basic

2008-07-13 Thread Hal Vaughan
On Sunday 13 July 2008, Oliver Brinzing wrote: Hi Hal, I want to do a few things with a dialog from Basic other than just get the values of some controls. maybe this helps: Okay, so to create an event handler for a control in a dialog, I have to do it in the XML for the dialog itself, is

Re: [api-dev] Interacting With Dialogs from Basic

2008-07-13 Thread Christoph Jopp
Hi Hal, don't know if this helps you much, but you can register an event handler in the dialog editor. Just right click on a control and look for the tab named 'events' (don't know if its the exact name in an english version). There you can choose an event for this control and either write the

Re: [api-dev] Interacting With Dialogs from Basic

2008-07-13 Thread Hal Vaughan
On Sunday 13 July 2008, Christoph Jopp wrote: Hi Hal, don't know if this helps you much, but you can register an event handler in the dialog editor. Just right click on a control and look for the tab named 'events' (don't know if its the exact name in an english version). There you can

Re: [api-dev] Interacting With Dialogs from Basic [Mostly Solved]

2008-07-13 Thread Hal Vaughan
I've got all the issues solved except one and I've included answers for the 3 that are solved. If anyone can help me with the outstanding issue, which is #3 (the File Browser control won't browse), let me know. I know I can remove it and replace it with a text control and button and write my

[api-dev] Cannot Assign Macros to AutoText Items

2008-07-13 Thread Hal Vaughan
I originally posted this to the General group a day ago, but the more I think about it, the more I think people here would be more likely to know how to deal with it. Like the one outstanding issue I'm having with the dialog in Basic (the file browser won't browse), it looks like this should

Re: [api-dev] Interacting With Dialogs from Basic [Mostly Solved]

2008-07-13 Thread Christoph Jopp
Hal Vaughan schrieb: (...) 3) The File Browser control doesn't open up any kind of browsing function when I click on Browse. That would force me to type in all file paths by hand. This still does not work and is the one outstanding issue: When I click on the Browse button, nothing

Re: [api-dev] Interacting With Dialogs from Basic [Mostly Solved]

2008-07-13 Thread Hal Vaughan
On Sunday 13 July 2008, Christoph Jopp wrote: Hal Vaughan schrieb: (...) 3) The File Browser control doesn't open up any kind of browsing function when I click on Browse. That would force me to type in all file paths by hand. This still does not work and is the one outstanding issue:

Re: [api-dev] Interacting With Dialogs from Basic [Mostly Solved]

2008-07-13 Thread Christoph Jopp
Hal Vaughan schrieb: On Sunday 13 July 2008, Christoph Jopp wrote: Hal Vaughan schrieb: (...) 3) The File Browser control doesn't open up any kind of browsing function when I click on Browse. That would force me to type in all file paths by hand. This still does not work

Re: [api-dev] Interacting With Dialogs from Basic [Mostly Solved]

2008-07-13 Thread Hal Vaughan
On Sunday 13 July 2008, Christoph Jopp wrote: Hal Vaughan schrieb: On Sunday 13 July 2008, Christoph Jopp wrote: Hal Vaughan schrieb: (...) 3) The File Browser control doesn't open up any kind of browsing function when I click on Browse. That would force me to type in all file

Re: [api-dev] Interacting With Dialogs from Basic [Mostly Solved]

2008-07-13 Thread 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?

Re: [api-dev] Interacting With Dialogs from Basic [Mostly Solved]

2008-07-13 Thread Hal Vaughan
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,