PHP Classes
elePHPant
Icontem

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,015 All time: 3,471 This week: 916Up
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.

Picture of José Augusto Ferreira Franco
Name: José Augusto Ferreira ... <contact>
Classes: 15 packages by
Country: Portugal Portugal
Innovation award
Innovation award
Nominee: 1x

Details
#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 http://onidesk.sytes.net/contacto.php  to send your opinions
 Use the chat on http://onidesk.sytes.net/ for updates and live discussion
Screenshots  
  • 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  
 0%
Total:1,015
This week:0
All time:3,471
This week:916Up