Environment: w2k+php4.3.1+php/gtk0.5.2
A simple Notepad (you can only open files for modification)
<?php
Set_time_limit (0); Set run time
if (!class_exists ("GTK"))//Determine if there is a GTK module
if (Strtoupper substr ($_server["OS", 0, 3)) = = "WIN")
DL ("Php_gtk.dll");
Else
DL ("php_gtk.so");
$window = &new Gtkwindow (); Build a Window
$window->set_uposition (100, 100); Where the window appears
$window->set_usize ((Gdk::screen_width () -200), (Gdk::screen_height ()-150)); Window size
$window->set_title ("WINDOWS"); Set window title
$window->connect_object (' Destroy ', Array (' GTK ', ' main_quit ')); Registering the window's events
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.