. Updated Daily. Editions SDA India   SDA Indonesia
BUSINESS ENTERPRISE SOLUTIONS ARCHITECTURE INFORMATION SECURITY WIRELESS & MOBILITY DATA & STORAGE DEVELOPMENT HARDWARE













News

Friday, 25 May 2007

Dial Widget in PHP-GTK

 

 

Marc Quinton throws light on the Dial Widget, a graphical object that displays an analog value. This is a direct port of the GTK tutorial about creating graphical widgets.

The Dial widget can display a value from -120 to 120. This could be changed by writing the right mathematical operations. This widget can draw directly into a Window or draw into a pixmap, which can then refresh as needed and look at the class source code to see how it is done.

Direct draw is much faster for large windows, he says. The graphical part of drawing the dial is a PHP-GTK port from the GTK tutorial. This widget is a good start when you need to build dynamic graphical widgets he initiates.

He also adds an example to use, the highlights and the source for the widget.

 

Read the Post

 
 
print save email comment

print

save

email

comment

 
 

Search SDA Asia

Free eNewsletter

SDA Asia Magazine Free Download
 
 
 
Copyright @ 2009 SDA Asia Magazine - All Right Reserved Privacy Policy | Terms of Use