PHP
  Home arrow PHP arrow Building Your Own Desktop Notepad Appl...
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Mobile Linux 
App Generation ROI 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Building Your Own Desktop Notepad Application Using PHP-GTK
By: K.K.Sou
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 5
    2008-09-23

    Table of Contents:
  • Building Your Own Desktop Notepad Application Using PHP-GTK
  • Assumptions
  • Calling each respective function
  • Edit Operations
  • About the modified flag

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Building Your Own Desktop Notepad Application Using PHP-GTK


    (Page 1 of 5 )

    If you think building a desktop application such as Notepad is difficult, think again. If you use PHP-GTK, it's almost ridiculously easy. This article will show you how. By the time you're done, you'll have a full cross-platform application in about 100 lines.

    You have successfully installed PHP-GTK v2.0.1.

    You have also followed the hello world example and hello Glade! tutorial on the official php-gtk website.

    So, what's next? You might be wondering. Where do you go from here?

    A real-life application with complete sample code

    This article will show you how easy it is to build a desktop Notepad application similar to the default Notepad application in a Windows system.

    I will explain to you all the core components, and how each component ties in with the others.

    You will see how signal handling is being used in real life, how menu items are processed, how to change the font of the editor, and how to open and save the text document.

    At the end of the article, you will also be presented with the complete sample code. You will be surprised that the entire code is just 100+ lines - a desktop notepad application written using the PHP with which you're so familiar!

    I'm using the Windows Notepad application as the example for this article because this is one application with which most people are familiar. Of course the sample code in this article can be run on Windows, Linux or MacOS. Just like PHP, PHP-GTK is cross-platform!

    More PHP Articles
    More By K.K.Sou


     

       

    PHP ARTICLES

    - Authentication Scripts for a User Management...
    - Utilizing the Use Keyword for Namespaces in ...
    - Building a User Management Application
    - Working With Different Namespaces in PHP 5
    - User Management Explained: Overview
    - Using Namespaces in PHP 5
    - Database Security: Guarding Against SQL Inje...
    - Building a Modular Exception Class in PHP 5
    - Database and Password Security for Web Appli...
    - Handling MySQL Data Set Failures in PHP 5
    - Building Site Registration for Web Applicati...
    - Intercepting Customized Exceptions in PHP 5
    - Securing Your Web Application Against Attacks
    - Sub Classing Exceptions in PHP 5
    - Authentication for Web Application Security





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
    Stay green...Green IT