Hi *,

I thought it was possible to hide (show) a toolbar with OOobasic as follows:

  oFrame = ThisComponent.CurrentController.Frame
  oLayoutManager = oFrame.LayoutManager

  sUrl="private:resource/toolbar/custom_toolbar_2828.xml"

  oToolbar = oLayoutManager.getElement( sUrl )
  xray oToolbar ' >  Null object
        
  oLayoutManager.hideElement(sUrl)

So this does not seem to work (OOo 2.4.0)

Besides that, finaly I need to hide/show a toolbar that is installed with an extension, so probably will not be found with the sUrl at all.

Searching the snippets/forums/archives didn't help me so far.

Any idea about the two questions?

Thanks a lot,
Cor

--

"The Year of 3" -2008- "Het jaar van 3"

Cor Nouws
Arnhem - Netherlands - nl.OpenOffice.org - marketing contact


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to