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    
Last Updated Ratings Unique User Downloads Download Rankings
2005-08-07 (11 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 1,016 All time: 3,475 This week: 785Up
Version License Categories
gtkwarnings 1.0Artistic LicenseGUI
Description Author

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.

Name: Josť Augusto Ferreira ... <contact>
Classes: 15 packages by
Country: Portugal Portugal
Age: 39
All time rank: 953 in Portugal Portugal
Week rank: 309 Down5 in Portugal Portugal Down
Innovation award
Innovation award
Nominee: 1x

#Created by Guto Ferreira on  8 July 2005 15:52 GMT

---> How to use it


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 :";
           #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,475
This week:785Up