Open form in a Dialog window?

Creating and using forms
Post Reply
Anne
Posts: 25
Joined: Fri Feb 01, 2008 2:22 am

Open form in a Dialog window?

Post by Anne »

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?
QuazzieEvil
Volunteer
Posts: 283
Joined: Tue Dec 04, 2007 6:38 pm
Location: Houston, TX

Re: Open form in a Dialog window?

Post by QuazzieEvil »

That is not possible. what you can do is remove all toolbars when the form loads.

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
bind that code
Post Reply