Login   Register  
PHP Classes
elePHPant
Icontem

File: splash.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of José Augusto Ferreira Franco  >  class splash  >  splash.php  >  Download  
File: splash.php
Role: Example script
Content type: text/plain
Description: Test script to class splash
Class: class splash
Display splash screens with PHP GTK
Author: By
Last change:
Date: 2006-11-11 14:09
Size: 719 bytes
 

Contents

Class file image Download
<?php
/**
 *@author José Augusto Ferreira Franco
 *@copyright Artistic Lisence
 *@link http://guto.awardspace.com
 *@package Class Splash [test script]
 *@version 1.0 done at 11 Nov 2006 
 */

require "class_splash.php";

function 
appTest()
{
    global 
$splash;  // you need to put this var as global to kill splash after main app opens
    
$splash->hide_splash(); // killing splash
    
$janela = &new GtkWindow();
    
$janela->set_title("Splash class test");
    
$janela->set_default_size(400,240);
    
$janela->connect_object("destroy","shutdown");
    
$janela->show_all();
}


function 
shutdown()
{
 
Gtk::main_quit();    
}



dl('php_gtk.dll');

$splash = new splash("appTest");


GTK::main();



?>