Open form in a Dialog window?
Open form in a Dialog window?
Is it possible to open a Base form in a Dialog window, like you can do in MS access? If so, how would you do that?
-
- Volunteer
- Posts: 283
- Joined: Tue Dec 04, 2007 6:38 pm
- Location: Houston, TX
Re: Open form in a Dialog window?
That is not possible. what you can do is remove all toolbars when the form loads.
bind that code
Code: Select all
Sub removeUnwantedToolbars(Event As Object)
Dim Doc As Object
Dim Frame As Object
Dim Layout As Object
Dim Element As Object
Dim I As Integer
Dim strURL As String
Dim Allowed
Dim CDA(4) As New com.sun.star.beans.PropertyValue
'Allowed=Array("private:resource/menubar/menubar","private:resource/toolbar/formsnavigationbar")
Doc=Event.Source.Parent.Parent
'xray doc
Frame=Doc.CurrentController.Frame
Layout=Frame.LayoutManager
For I=0 To UBound(Layout.Elements)
strURL=Layout.Elements(I).ResourceURL
'If Not isIN(strURL,Allowed) Then
Layout.hideElement(strURL)
'End If
Next I
End Sub