» Metadata | » Status |
---|---|
|
|
» Description | |
Problem:Most classes in PHP-GTK that have visual components can have their appearance changed using a GtkStyle object. This allows the programmer to make applications that have a unique look and feel. Unfortuantely some classes, those that don't inherit from GtkWidget, can not have their appearance altered. This leads to applications that have an unfinished look. The most common types of widgets that cannot be styled are scroll bars. Scroll bars are a visual representation of a GtkAdjustment object. Solution:By mimicing the properties and capabilities of commonly used and unstyleable GtkObjects and GtkWidgets with collections of widgets whose style can be controlled, you can have the functionality and usefulness of objects like scroll bars and progress bars and also have a completely unified appearance to your applications. The most common problem that programmers run into when trying to create a unified appearance are widgets that incorporate GtkAjustment objects. GtkAdjustments themselves are decendants of GtkData and do not have any visual components, but are used in many widgets such as GtkScrollBars and GtkProgress. By creating a GtkAdjustment psuedo-widget, the programmer can control the look and feel of a basic component for scrolling widgets. Example:A simple example:
More advanced example found at: Screen shot of the advanced example: Classes:Gtk_Styled_Adjustment |
|
» Dependencies | » Links |
|
|
» Timeline | » Changelog |
|
|