foxGUIb

GUI Creator for Ruby + Fox

Guide Contents

Layouts - Splitter,Tabs, Matrix

Splitter

You might use a splitter when you have 2 work areas side-by-side, and you would like the user to be able to allocate more screen area to one area than the other.

The splitter provides a line that can be dragged, resizing areas on each side of it.

Here is a widget tree for a splitter:


MainWindow
    horizontalFrame
        splitter
            text1
            text2
            text3
Normally, a splitter controls two areas, but can control more. The above shows the case with a splitter controlling three text areas. In this case, it provides two vertical lines which can be dragged.

The property SPLITTER_REVERSED needs to be set on for splitters to work!

Tabs

A tab provides a set of overlapping areas, with a 'tab' sticking up, so an area can be brought to the front. Here is a foxGUIb tree for some tabs:

MainWindow
    Switcher
        TabBook
            TabItem1
                VerticalFrame1     (created automatically)
                    Button1
                    button2

            TabItem2
                VerticalFrame2     (created automatically)
                    Button12
                    button22

Matrix

to do...

 


Guide Contents