The Accordion container (added in B4J v5.0) is a container similar to TabPane. It holds TitledPanes. These are panes with titles.
Using the accordion is quite simple. Add the Accordion node with the designer and create a layout file for each of the TitledPanes.
Sub AppStart (Form1 As Form, Args() As String) MainForm = Form1 MainForm.RootPane.LoadLayout("Main") Accordion1.LoadLayout("Pane1", "Pane 1") Accordion1.LoadLayout("Pane2", "Pane 2") Accordion1.LoadLayout("Pane3", "Pane 3") MainForm.Show End Sub
5.1 KB Views: 775