dockwindow class
A window dockable to the KVIrc main frame
Inherits
object widget
Description
A window dockable to the KVIrc main frame borders (like a toolbar).
Functions
$addWidget(<widget:hobject>)
Adds <widget> as the main widget inside this dock window.
The widget must be a child of this dock window (otherwise strange things may happen). In order to use a layout, apply it to <widget>, as shown in the example.
$setAllowedDockAreas(<docks:string>)
Sets the allowed main window dock areas for this dock window.
<docks> must be a combination of l, r, t, b, f and m.
l stands for left dock area, r stands for right dock area, t stands for the top dock areas, b stands for the bottom dock area, f stands for floating and m for minimized.
If a flag is present then the related block area is enabled,otherwise it is disabled.
$dock(<dockarea:string>)
Docks this dock window to the specified dockarea of the main KVIrc window which can be one of "l" (left dock area), "t" (top dock area), "r" (right dock area), "b" (bottom dock area), "f" (floating) and "m" (minimized).
Examples

%dock = $new(dockwindow)
%dock->$setWindowTitle("This is the dock window title")
%dock->$setAllowedDockAreas("l","f")
%widget = $new(widget, %dock)
%dock->$addWidget(%widget)
%box=$new(vbox,%widget)
%layout=$new(layout,%widget)
%layout->$addWidget(%box,0,0)
%label = $new(label,%box)
%label->$setText("This is a text label")
%lineedit = $new(lineedit,%box)
%lineedit->$setText("This is a lineedit")
%button = $new(button, %box)
%button->$setText("Close me")
privateimpl(%dock,closeMe)
{
    delete $$
}
objects.connect %button clicked %dock closeMe
%dock->$show()

Index, Object Classes