Delphi-Kylix
  Home arrow Delphi-Kylix arrow Page 2 - Creating Chat Application with Borland Del...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
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? 
DELPHI-KYLIX

Creating Chat Application with Borland Delphi/Indy: The Client
By: Jacques Noah
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 21
    2006-01-09

    Table of Contents:
  • Creating Chat Application with Borland Delphi/Indy: The Client
  • Building the User Interface
  • The Code – Dealing with messages sent from the Server
  • The TLog/TReading Classes
  • Sending a request to the Server

  • 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


    Creating Chat Application with Borland Delphi/Indy: The Client - Building the User Interface


    (Page 2 of 5 )

     

    First, let’s build the UI. Again, this is just a guide; please build the interface in any way you like. Fire up Delphi, create a new application, and drop an idtcpclient component. Rename it ‘tc’, and put 3 edits, 4 buttons,4 statictext, a listbox and a memo on the form. To create a menu on the form, you can use a mainmenu component. I’ve used a actionmainmenubar and action manager, because it gives an overall XP look. Now, double click on actionmanager or the mainmenu component (whichever one you’ve choosen), create a menu item called Configure, and add sub menu items, Connection Settings and Exit.  Arrange them to your liking. This is what my UI looks like so far:

     

    Add 3 more forms and call the associated units: sendfile, showpic and setup.

    On the form that you will use to send a file add the following components:

    • edit rename to ‘edfn’
    • 2 statictext, 
    • 2 buttons -- rename one of the buttons to btSendfile, 
    • progressbar -- rename to 'prog'
    • an opendialogbox -- rename to 'op'
    • a combobox -- rename to 'cb.'                      

    This is what my send file form looks like so far:

    This is how you send a file

    On the form that you will use to view screenshot add the following component:

    Image – Available from the Additional Components Tab

    On the setup form add the following components:

    • 2 edit renamed edport and edip respectively
    • 2 static text
    • 1 button renamed btSetup

    More Delphi-Kylix Articles
    More By Jacques Noah


       · [i]In this third article in a series on building a chat application, you will learn...
       · Can i Donwload the source ? somwhere ?thnx
       · The code posted in this article isn't complete! Please, man! Post the complete...
       · how do you make categorys and sub categorys in the action manager.Need Help!!!
     

    DELPHI-KYLIX ARTICLES

    - Building a Server Application for an Interne...
    - Building an Internet Access Control Applicat...
    - Client Dataset: Working with Data Packets an...
    - Using the Client Dataset in an N-Tiered Appl...
    - Using the Client Dataset in Two-Tiered Clien...
    - Using the Client Dataset in File-Based Archi...
    - Demystifying the Client Dataset
    - Working with INI Files in Delphi
    - Creating Data Link (UDL) Files in Delphi
    - Looking at the Details for an Invoicing Appl...
    - Invoicing in Delphi: Show Me the Money
    - Saving Images and Binary Files to a Database...
    - Saving Files to a Database using Delphi: Sav...
    - Creating CF Applications and Integrating a S...
    - Using Try and Finally to Help Prevent Memory...







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway