summaryrefslogtreecommitdiff
path: root/wizards/source/webwizard
diff options
context:
space:
mode:
authorBehrend Cornelius <bc@openoffice.org>2001-10-01 14:39:53 +0000
committerBehrend Cornelius <bc@openoffice.org>2001-10-01 14:39:53 +0000
commit28c4b12a54fbd424958b728b06dbf11a7eb181b0 (patch)
tree9977b4e06105563912f1453697bc22c3faf4ffa2 /wizards/source/webwizard
parent0067e33ee9e2d5136958a118eee1ce212ff8ce7d (diff)
#91427# Focus now set to Listbox
Diffstat (limited to 'wizards/source/webwizard')
-rw-r--r--wizards/source/webwizard/HtmlAutoPilotBasic.xba12
1 files changed, 7 insertions, 5 deletions
diff --git a/wizards/source/webwizard/HtmlAutoPilotBasic.xba b/wizards/source/webwizard/HtmlAutoPilotBasic.xba
index dd2b713624d9..b474841a29b4 100644
--- a/wizards/source/webwizard/HtmlAutoPilotBasic.xba
+++ b/wizards/source/webwizard/HtmlAutoPilotBasic.xba
@@ -79,6 +79,7 @@ Sub Main
sBitmapPath = SOBitmapPath &amp; &quot;webwizard.bmp&quot;
DialogModel.ImagePreview.ImageURL = sBitmapPath
ToggleOptionButtons(DialogModel, bWithBackGraphic)
+ MainDialog.GetControl(&quot;lbTemplate&quot;).SetFocus = True
DialogModel.cbGoOn.DefaultButton = True
MainDialog.Execute
@@ -104,7 +105,7 @@ Dim CurInd as Integer
&apos;On Local Error Goto ErrorOcurred
&apos; Todo:Check if the pointer is really disabled, when set to Hourglass
ToggleDialogControls(False)
- oBaseDocument.LockControllers
+&apos; oBaseDocument.LockControllers
&apos; Get selected list entry and corresponding file name
CurInd = GetCurIndex(DialogModel.lbTemplate, Layout(), NumberofLayouts%, 2)
oCursor = oBaseDocument.Text.CreateTextCursor()
@@ -118,9 +119,9 @@ ErrorOcurred:
If Err &lt;&gt; 0 Then
MsgBox(WebWiz_gErrWhileReloading$, 16, WebWiz_gWizardName$)
End If
- oBaseDocument.UnlockControllers
+&apos; oBaseDocument.UnlockControllers
oViewCursor.GotoStart(False)
- ToggleDialogControls(True)
+ ToggleDialogControls(True, &quot;lbTemplate&quot;)
End Sub
@@ -146,7 +147,7 @@ Dim CurIndex as Integer
CheckControls(oBaseDocument.DrawPage)
oViewCursor.GotoStart(False)
oBaseDocument.UnlockControllers
- ToggleDialogControls(True)
+ ToggleDialogControls(True, &quot;lbStyles&quot;)
End Sub
@@ -396,7 +397,7 @@ Dim sBitmapPath as String
End Sub
-Sub ToggleDialogControls(ByVal bDoEnable as Boolean)
+Sub ToggleDialogControls(ByVal bDoEnable as Boolean, Optional FocusControlName as String)
With DialogModel
.cbCancel.Enabled = bDoEnable
.cbGoOn.Enabled = bDoEnable
@@ -409,6 +410,7 @@ Sub ToggleDialogControls(ByVal bDoEnable as Boolean)
If bDoEnable Then
&apos; Enable Controls referring to Background graphic only when this Property is set
bDoEnable = bWithBackGraphic
+ MainDialog.GetControl(FocusControlName).SetFocus = True
End If
ToggleOptionButtons(DialogModel, bDoEnable)
End With