| View previous topic :: View next topic |
| Author |
Message |
echidna21 General User

Joined: 21 Jul 2010 Posts: 5
|
Posted: Wed Jul 21, 2010 1:40 am Post subject: Refresh Dialog |
|
|
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 |
|
 |
echidna21 General User

Joined: 21 Jul 2010 Posts: 5
|
Posted: Wed Jul 21, 2010 5:23 am Post subject: |
|
|
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 |
|
 |
|