From 2300a20dbc2a3704760050051251ec16b2c1ceb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Timm?= Date: Fri, 26 Nov 2004 13:40:16 +0000 Subject: [PATCH] INTEGRATION: CWS helpcontentbeta (1.1.2); FILE MERGED 2004/10/06 14:55:12 fpe 1.1.2.2: Regular Update 2004/09/16 11:45:09 fpe 1.1.2.1: Regular Update --- .../source/text/sbasic/guide/show_dialog.xhp | 59 ++++++++++--------- 1 file changed, 32 insertions(+), 27 deletions(-) diff --git a/helpcontent2/source/text/sbasic/guide/show_dialog.xhp b/helpcontent2/source/text/sbasic/guide/show_dialog.xhp index d16b6de4dd..9f748399a8 100755 --- a/helpcontent2/source/text/sbasic/guide/show_dialog.xhp +++ b/helpcontent2/source/text/sbasic/guide/show_dialog.xhp @@ -52,40 +52,45 @@ * Contributor(s): _______________________________________ * * - ************************************************************************--> + ************************************************************************--> + + -Opening a Dialog With Program Code +Opening a Dialog With Program Code /text/sbasic/guide/show_dialog.xhp Sun Microsystems, Inc. -converted from old format - fpe +converted from old format - fpe - - - - modules and dialogs; toggleexamples; show a dialog using program codeOpening a Dialog With Program Code - In the %PRODUCTNAME BASIC window for a dialog that you created, leave the dialog editor by clicking the name tab of the Module that the dialog is assigned to. The name tab is at the bottom of the window. - Enter the following code for a subroutine called Dialog1Show. In this example, the name of the dialog that you created is "Dialog1": - Sub Dialog1Show - BasicLibraries.LoadLibrary("Tools") - oDialog1 = LoadDialog("Standard", "Dialog1") - oDialog1.Execute() - End Sub - Without using "LoadDialog" you can call the code as follows: - Sub Dialog1Show - DialogLibraries.LoadLibrary( "Standard" ) - oDialog1 = CreateUnoDialog( DialogLibraries.Standard.Dialog1 ) - oDialog1.Execute() - End Sub - When you execute this code, "Dialog1" opens. To close the dialog, click the closer (x) on its title bar. - - - - - - +modules and dialogs; toggle +dialogs;using program code to show (example) +examples; showing a dialog using program code + +Opening a Dialog With Program Code + +In the %PRODUCTNAME BASIC window for a dialog that you created, leave the dialog editor by clicking the name tab of the Module that the dialog is assigned to. The name tab is at the bottom of the window. +Enter the following code for a subroutine called Dialog1Show. In this example, the name of the dialog that you created is "Dialog1": +Sub Dialog1Show +BasicLibraries.LoadLibrary("Tools") +oDialog1 = LoadDialog("Standard", "Dialog1") +oDialog1.Execute() +End Sub +Without using "LoadDialog" you can call the code as follows: +Sub Dialog1Show +DialogLibraries.LoadLibrary( "Standard" ) +oDialog1 = CreateUnoDialog( DialogLibraries.Standard.Dialog1 ) +oDialog1.Execute() +End Sub +When you execute this code, "Dialog1" opens. To close the dialog, click the close button (x) on its title bar. +
+ + + + +
+