Module Wpane

module Wpane: sig .. end

Panels


Form

type field = [ `Compact | `Field | `Panel ] 

The expansible attribute of a field.

A form with various field types.

The form consists of two columns, with one entry per line. Left columns is reserved for (optional) labels. Fields take place in right column. It is also possible to add widget that spans over the two columns.

The form can be horizontally divided into sections.

Elements must be added in left-to-right, top-down order.

class form : unit -> object .. end

Tabbed-pane

class ['a] notebook : ?tabs:Gtk.Tags.position -> default:'a -> unit -> object .. end

Array of Widgets

class type entry = object .. end
class ['a] warray : ?dir:Gtk.Tags.orientation -> ?entry:'a -> entry -> unit -> object .. end

Dialogs

type 'a action = [ `ACTION of unit -> unit
| `ALT of 'a
| `APPLY
| `CANCEL
| `DEFAULT of 'a
| `SELECT of 'a ]

Button for dialog options

Dialog Window.

Dialog window are asynchronous and modal. To open the dialog, invoke run. The method returns immediately. When running, the main window is no more sensitive (dialog is modal). When an action-button is pressed, or the method select is invoked, the associated signal is emitted, and the dialog is dismissed. Then focus goes back to the main window, and the dialog can be re-emitted.

class [[> `APPLY | `CANCEL ]] dialog : title:string -> window:GWindow.window -> ?resize:bool -> unit -> object .. end