PHP Classes

GTK warning messages : Manage GTK windows displaying warning messages

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 1,037 All time: 3,554 This week: 555Up
Version License Categories
gtkwarnings 1.0Artistic LicenseGUI


This class can be used to manage GUI windows opened with PHP-GTK to display warning messages.

The class can open a window to display a given warning message and an icon to display near the message text.

The class automatically associates a button that triggers an action to close the window.

The comments in the code are in Portuguese and English.

Picture of Josť Augusto Ferreira Franco
  Performance   Level  
Name: Josť Augusto Ferreira ... <contact>
Classes: 15 packages by
Country: Portugal Portugal
Age: 46
All time rank: 963 in Portugal Portugal
Week rank: 328 Down4 in Portugal Portugal Down
Innovation award
Innovation award
Nominee: 1x


#warning.class.php #Created by Guto Ferreira on 8 July 2005 15:52 GMT ---> How to use it TO RUN THIS CLASS YOU JUST HAVE TO FOLLOW THIS SINGLE STEPS STEP ONE - Unzip all files on package warnings.class.rar to your PHP-GTK root directory STEP TWO - Click on demo.bat and here is the app running :) ---->Frequently asked questions Question 1: __________ My text is not on the middle of the window , what mut i do ? ------------------------------------------------------------ Edit the class and seach for the line below on the function count_and_format : $ftext = $this->format_text("",10," ",$new_text[0]." ".$new_text[1]." ".$new_text[2]."",1,"").$this->format_text("\n",15," ",$new_text[3]." ".$new_text[4]." ".$new_text[5]." ",1,"\n"); To change the space alignment just increase or decrease the second and the five parameter of the method format_text() on line under Question 2: __________ How can i debug the array elements of my message? This is not necessary,however, if you want do that search for the line below on function count_and_format, and uncomment the line below: #echo"<pre>\nElementos :"; #print_r($simpleWord); #echo "</pre>\n"; Feel free to send comments bugs and corrections Use the site to send your opinions Use the chat on for updates and live discussion

  • warning_.JPG
  Files folder image Files  
File Role Description
Accessible without login Plain text file demo.bat Data shortcut to run application
Accessible without login Plain text file demo.php Example this file shows how it can be used
Accessible without login Plain text file info.xpm Data this is an ico example on window
Accessible without login Plain text file readme_english.txt Doc. the file read me with the tips to do a good class configuration
Accessible without login Plain text file readme_portuguese.txt Doc. The read me file written in porutguese
Plain text file warnings.class.php Class Thisfile is the class main

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,554
This week:555Up