Skip to content

BorderPanel

Carlo Barazzetta edited this page Jan 27, 2017 · 2 revisions

BorderPanel

A controller that hosts up to 5 other controllers in a "border" layout.

https://github.com/EtheaDev/kitto2/wiki/images/BorderPanel.png

Here's an example:

SubView:
  Controller: BorderPanel
      
    WestView:
      DisplayLabel: Navigation
      Controller: BorderPanel
        Width: 155
        Collapsible: True
        Border: True
        Split: True
        NorthView:
          Controller: HtmlPanel
            Split: False
            Html: <p><img src="%IMAGE(kitto_logo_150)%" width="150" height="47"></img></p>
        CenterView:
          Controller: TreePanel
            TreeView: MainMenu
      
    CenterView:
      Controller: TabPanel
        Border: True
        SubViews:
          View: Girls
          View: Dolls

    NorthView:
      Controller: ToolBar
        TreeView: MainMenu

    SouthView:
      Controller: StatusBar
        Text: <p>User: %Auth:UserName%</p>
      ImageName: user

And here's the result:

https://github.com/EtheaDev/kitto2/wiki/images/BorderPanelExample.png

As you can see in the WestView above, each sub-controller can in turn host other controllers, and so on. You can try to "comment" (just add a leading dot or otherwise alter the name) the NorthView and see what happens.

Clone this wiki locally