Issue 105097 - Functions to hide and show dialogs without losing control modifications
Summary: Functions to hide and show dialogs without losing control modifications
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: udk
Classification: Code
Component: code (show other issues)
Version: OOO310m11
Hardware: All All
: P5 (lowest) Trivial (vote)
Target Milestone: ---
Assignee: ab
QA Contact: issues@udk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-15 16:41 UTC by llyaudet
Modified: 2009-10-11 14:18 UTC (History)
1 user (show)

See Also:
Issue Type: FEATURE
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
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