GtkScrolledWindow Class

The GtkScrolledWindow class is a container for classes that require vertical and horizontal scroll bars.

The class heirarchy


   Object
      +---GtkWidget
         +---GtkContainer
            +---GtkScrolledWindow

The methods for the GtkRadioButton class are documented below.

GtkScrolledWindow Method Table of Contents

new - Create and initialize the widget
setpolicy - Set scrollbar policy


Method: new

This method creates and initializes the widget. This window contains both a horizontal and a vertical scroll bar.

Example

This is a example of how to create a new scrolled window widget.


myscrolledwin = .GtkScrolledWindow~new()

Method Parameters

None.

Method Results

The new GtkScrolledWindow object.




Method: setpolicy

This method sets the policy for the horizontal and vertical scrollbars.

Example

This is a example of how to set the policy.


hpolicy = 'GTK_POLICY_NEVER'
vpolicy = 'GTK_POLICY_ALWAYS'
myscrolledwin~setpolicy(hpolicy, vpolicy)

Method Parameters

hpolicy
The horizontal scrollbar policy. See the notes below for the list of valid strings.
vpolicy
The vertical scrollbar policy. See the notes below for the list of valid strings.

Method Results

Sets the policy.

Notes

The scrollbar policy must be one of the following strings.

GTK_POLICY_ALWAYS (this is the default)
GTK_POLICY_NEVER
GTK_POLICY_AUTOMATIC


Valid XHTML 1.0!