Issue 105097

Summary: Functions to hide and show dialogs without losing control modifications
Product: udk Reporter: llyaudet <laurent.lyaudet>
Component: codeAssignee: ab
Status: CLOSED IRREPRODUCIBLE QA Contact: issues@udk <issues>
Severity: Trivial    
Priority: P5 (lowest) CC: issues
Version: OOO310m11   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: FEATURE Latest Confirmation in: ---
Developer Difficulty: ---

Description llyaudet 2009-09-15 16:41:16 UTC
- createUnoDialog
- execute a dialog 
- fill some combobox or modify some control of this dialog
- endexecute the dialog
- execute the dialog again
- all modifications to the controls of the dialog are lost :(
It would be nice to have show and hide methods that keep the modifications
to the dialog. Otherwise macro functions to save and load "dialog
configurations" are tiedous to code.
Comment 1 kay.ramme 2009-09-21 09:11:50 UTC
Andreas, please have a look.
Comment 2 ab 2009-09-29 11:20:01 UTC
ab->llyaudet: There already are such methods, but I
doubt that it makes much sense to use them with a
modal dialog, although it is possible. Assume you
have a simple dialog with a button and a text field.
If you assign HideHdl to the button's Execute event
pressing the button will hide it for 3s keeping the
text in the text field:

public oDlg

Sub Main
    oDlg = CreateUnoDialog( DialogLibraries.Standard.Dialog1 )
    oDlg.execute
End Sub

Sub HideHdl
    oDlg.SetVisible( false )
    wait( 3000 )
    oDlg.SetVisible( true )
End Sub

You can also modify the control models before execu-
ting the dialog, e.g.:

oDlg.Model.TextField1.Text = "Hello"
oDlg.execute

-> WORKSFORME
Comment 3 Mechtilde 2009-10-11 14:18:01 UTC
worksforme -> closed