OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Refresh Dialog

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
echidna21
General User
General User


Joined: 21 Jul 2010
Posts: 5

PostPosted: Wed Jul 21, 2010 1:40 am    Post subject: Refresh Dialog Reply with quote

Hi everybody,

I have a problem with basic and dialogs.

I have a dialog with an empty textfield. By clicking on a button i set the value of the textfield.

Code:

oDialog = CreateUnoDialog(DialogLibraries.fspeech.RecOptionsDialog)
oTextFieldModel = oDialog.Model.PathTextField
oTextFieldModel.Text = "hallo"


The textfield value is correctly setted because if i make a msgBox printing the value it returns the correct one (In this case "hello"),
But in the dialog the textfield remains empty.

There is a way to refresh the dialog in order to show the updated string?

Thank You

Echidna21
Back to top
View user's profile Send private message
echidna21
General User
General User


Joined: 21 Jul 2010
Posts: 5

PostPosted: Wed Jul 21, 2010 5:23 am    Post subject: Reply with quote

I solved my issue.

Use a global variable object for CreateUnoDialog(DialogLibraries.fspeech.RecOptionsDialog)

In my case oDialog had to be decleared as Global
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group