Standalone switchboard in LibreOffice Base with out toolbar display possible?

How do you create a standalone switchboard in LibreOffice Base where you don’t see the tool bars when you open up the switch board, that is you only see the switch board when you open it?

I was watching the following video on YouTube from the TheFrugalComputerGuy that shows how you would create a switchboard with LO (but his version has the tool bars when you open the switch board):

and in the comments he mentions that it is possible with the use of macros, but I am not sure how to implement it.
Does anyone know how I would go about this?

Just tested this on a standalone document. The macro will remove all toolbars and return the menu to be visible. Activation of the macro depends upon how your entire setup is designed. However, for the single form I used, I attached the macro to the Open Document event of the document. Then when the document is opened, the macro runs and the toolbars are removed. Here is the macro:

Sub RemoveToolbars
	Dim oMenuBar as Object
	If thisComponent.CurrentController.isFormDesignMode Then Exit Sub
	thisComponent.CurrentController.Frame.LayoutManager.visible = false
End Sub

It is very short. If you know little or nothing about macros, I’d advise looking at the LO documentation - click here especially chapter 9.

Tested sample:image description

If this answers your question please click on the :heavy_check_mark: (upper left area of answer).

Thanks for replying, I will try this and come back if I have any questions