OxyScripts.com
Menu spacer Home Tutorials Articles Code Forums irc.freenode.net #oxyscripts
Main (PHP)
Home Forums PHP News PHP Tutorials Articles PHP Code Snippets Contact Us Sysadmin Resources Books Template Shop
3rd Party Streams
SlashDot PHPDeveloper.org PHP.Net
Resources
PHP Manual MySQL Manual Smarty Manual PEAR Manual PHP-GTK Manual Symfony Manual
Code Snippets
Authentication Database Graphics HTTP Miscellaneous Time/Date
Affiliates
Scripts TutorialMan TutorialGuide CodingForums.com PHP Scripts Cheap Web Hosting Affordable Web Hosting Dreamweaver Templates

Search This Site :     PHP Function Reference :
 
GtkViewport

GtkViewport

Provides scrolling capability for non-scrolling aware widgets.

Object Hierarchy

GtkObject
`-- GtkWidget
       `-- GtkContainer
              `-- GtkBin
                     `-- GtkViewport

Direct subclasses

None.

Description

The GtkViewport object is only used alongside a GtkScrolledWindow, and provides scrolling capability where the child widget being added to a scrolled window is not otherwise scrollable.

It is not possible in most cases to use it outside this context, as its adjustment values are set internally by the child's sizing policies and can neither be overridden manually nor used directly. Note that directional keybindings in a non-scrolling aware widget are not usually bound to any adjustment value by default; the GtkViewport simply allows the use of scrollbars with such a widget. The exception that proves this rule is GtkList, which is set up so that it can be made to be scrollable via the keyboard if it is added to a GtkViewport.

In most circumstances, it is easier to construct the viewport object by using the convenience method add_with_viewport() rather than by using its own constructor.

Constructor

GtkViewport ([ GtkAdjustment hadjustment = NULL , [ GtkAdjustment vadjustment = NULL ]]);
-- Creates a scrollable container.

Methods

get_hadjustment()
  Returns the horizontal adjustment object.
get_vadjustment()
  Returns the vertical adjustment object.
set_shadow_type()
  Sets the shadow style on the viewport's border.

 
   Print this page

Top Sponsor
Symantec\'s Norton SystemWorks 2006
Sponsors
CA
Sponsors
AdWords Dominator 125*125
Advertisting

Affiliates
VertexTemplates PHPFreaks CodeWalkers StarGeek DevScripts CGI & PHP Scripts PHP CMS

Shopping Rebates   Sell It 4 You   Flash Page Counters   Get Insured
GPS Tracking Service   Charity Donate Info   Web Site Hosting   VOIP Service

Privacy Policy | Links | Site Map | Advertising

All content on OxyScripts.com is (©)2002-2007

 
Powered by Adrastea - Version 1.0.0. Copyright © Rune Solutions, 2004-2005