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 :
 
GtkButton

GtkButton

A container widget that emits a signal when clicked on.

Object Hierarchy

GtkObject
`-- GtkWidget
       `-- GtkContainer
              `-- GtkBin
                     `-- GtkButton

Direct subclasses

Description

The GtkButton widget is a container widget that can hold any valid child widget derived from GtkWidget. The most commonly used child widget is a GtkLabel. This is therefore built into the constructor as an optional parameter.

The GtkButton widget is mainly used to call some function when the button is pressed.

To change the label after the button is created, you can use the children() function of the container class:
//$obj is the button object
$childs = $obj->children();
$childs[0]->set_text('new button title');

Constructor

GtkButton ([string label ]);
-- Creates a button.

Methods

pressed()
  Emits "pressed" signal.
released()
  Emits "released" signal.
clicked()
  Emits "clicked" signal.
enter()
  Emits "enter" signal.
leave()
  Emits "leave" signal.
set_relief()
  Sets the button relief style.
get_relief()
  Gets the button relief style.

Signals

"enter"
  Emitted when the cursor is over the button.
"pressed"
  Emitted when the button is initially pressed.
"clicked"
  Emitted when the button is clicked.
"released"
  Emitted when the button is released.
"leave"
  Emitted when the cursor leaves the button area.

 
   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