Hide All Unnecessary Interface in Base (Toolbars, Panels)

Discuss the database features
Post Reply
DreamerArgentino
Posts: 17
Joined: Sun May 20, 2018 12:02 am

Hide All Unnecessary Interface in Base (Toolbars, Panels)

Post by DreamerArgentino »

Hello everyone!

Is there any way to hide everything in Base? That is, the entire panel of Tables, Queries, Forms, Menues, Contextual Menues, various Toolbars, etc. and only open the necessary Forms, obviously including the necessary controls to be able to work with the registers? Is that I need to avoid touching or modifying something by the user.

Thank you!
Greetings.
DreamerArg.-
OpenOffice 4.1.5 On Windows 10
UnklDonald418
Volunteer
Posts: 1547
Joined: Wed Jun 24, 2015 12:56 am
Location: Colorado, USA

Re: Hide All Unnecessary Interface in Base (Toolbars, Panels

Post by UnklDonald418 »

Try the following macro to see if it does what you need.

Code: Select all

Sub ToggleMenus 

Dim oDoc as object
oDoc = ThisComponent
  IF oDoc.CurrentController.Frame.LayoutManager.isVisible() then
     oDoc.CurrentController.Frame.LayoutManager.setVisible(FALSE)
  else
     oDoc.CurrentController.Frame.LayoutManager.setVisible(TRUE)
  endif

End Sub
If your problem has been solved, please edit this topic's initial post and add "[Solved]" to the beginning of the subject line
Apache OpenOffice 4.1.14 & LibreOffice 7.6.2.1 (x86_64) - Windows 10 Professional- Windows 11
JPL
Volunteer
Posts: 132
Joined: Fri Mar 30, 2012 3:14 pm

Re: Hide All Unnecessary Interface in Base (Toolbars, Panels

Post by JPL »

The welcome page with the list of tables, forms, etc. cannot be hidden. It can only be minimized by macro.
You could also consider using standalone forms.

JPL
Kubuntu 22.04 / LibO 24.2
Access2Base (LibO).
BaseDocumenter extension (LibO)
ScriptForge (LibO)
Documentation on https://help.libreoffice.org/latest/en- ... bPAR=BASIC
Nocton
Volunteer
Posts: 533
Joined: Fri Nov 05, 2010 10:27 am
Location: UK

Re: Hide All Unnecessary Interface in Base (Toolbars, Panels

Post by Nocton »

See: viewtopic.php?f=13&t=91522

You just need to run it via a Windows script file.
OpenOffice 4.1.12 on Windows 10
Post Reply