### Toolbars Hide/Show

Example sub to hide or show the HTMLEditor Top and Bottom Toolbars (requires the JavaObject library).
`Sub Process_Globals
Private HTMLEditor1 As HTMLEditor
...
End Sub`
' Hide or show the htmleditor toolbars. There are 2 toolbars: top-toolbar with index 0 and bottom-toolbar with index 1.
' Example hide the top-toolbar: SetHTMLEditorToolbar(HTMLEditor1, 0, False)
`Sub SetHTMLEditorToolbar (Editor As HTMLEditor, Index As Int, State As Boolean)
Dim jo As JavaObject = HTMLEditor1
' Get the toolbars defined in to an array of objects
Dim nodes() As Object = jo.RunMethodJO("lookupAll", Array(".tool-bar")).RunMethod("toArray", Null)
' Get the toolbar for the index parameter
Dim toolbar As JavaObject = nodes(Index)
' Set the state
toolbar.RunMethod("setVisible", Array(State))
toolbar.RunMethod("setManaged", Array(State))
End Sub`

Changed: , Category: HTMLEditor, File: T6C198M1459.htm, ID: 1459