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 own browser routine, but for now there are other 
points to work on and I'm hoping it's something overly simple that I've 
missed.

On Sunday 13 July 2008, Hal Vaughan wrote:
> 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 able to tell if "Cancel" or "OK" was pressed.

Solved in several ways.  Used Case and oDialog.execute() returns a 0 if 
canceled or closed with the close button on the window frame and 
returns a 1 if closed with the OK button.

> 2) I notice that a text field doesn't officially contain the title
> until I press "Enter".  I'd like to be able to respond to keypresses
> and take whatever is visible in a text field at any keypress and put
> that value into the actual text field value.

Solved by adding an event handler through the Events tab in the 
Properties window (didn't see the Events tab due to scroll bars).

> 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 happens, but from what I read, it 
should open up a file browser for me.  Any idea what I need to do or 
why this doesn't work?

> 4) When a regular button is pressed, I'd like to have it call a
> subroutine in my Basic library so I can parse data in a particular
> field.

Also solved with the Events tab settings.

Thanks for the help!


Hal

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

Reply via email to