Delphi-Kylix
  Home arrow Delphi-Kylix arrow Page 3 - Building a Mailing List with Borland Delph...
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  
Mobile Linux 
App Generation ROI 
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

Building a Mailing List with Borland Delphi
By: Leidago
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2006-09-27

    Table of Contents:
  • Building a Mailing List with Borland Delphi
  • The Database
  • Building the GUI for the Application
  • How the program works
  • Status reports

  • 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 a Mailing List with Borland Delphi - Building the GUI for the Application


    (Page 3 of 5 )

    Start up Delphi and create a new application. Save the application with whatever name you like; I've called it MailinglistApp. Drop two 2 tedits (call them edfrom and edsubject), two memos, three tlistviews (rename them to lvattachments, lvGroups and lvgrpemails), one richedit (rename to re), two radio buttons (rename to rb1 and rb2), four static text labels (with captions: From, Subject, Attachments and Message), a tmainmenu, tidmessage (idmessage), idsmtp (rename to idsmtp), tadoquery, opendialog (rename to od), tdatasource and two buttons (rename to btnSend and btnBrowse). Double click on the mainmenu1 component and add the following captions:

    File

    |_Exit

    Options

    |_Add new contact

    |_View all Email Addresses

    Help

    |_About

    Now, double click on the exit menu item and add the following code:

    procedure TForm1.Exit1Click(Sender: TObject);
    begin
    close;
    end;

    Next, double click on the Add New Contact menu item and add the following code:

    procedure TForm1.AddNewContact1Click(Sender: TObject);
    begin
    form2.show;
    end;

    Next, double click on the View all Email Addresses menu item and add the following code:

    procedure TForm1.ViewContactDetails1Click(Sender: TObject);
    begin
    form3.show;
    end;

    Click on the lvattachments listview, go to the object inspectors' viewstyle property ad select vsReport. Then just double click on it and add "Filename" as  the column header. Do the same with lvgroups and add "group name" as the header. Also, do the same with lvgrpemail and add "Name" and "Email" as the headers.

    Arrange these components on the form so that they look something like this:

    That concludes the GUI building process.

    More Delphi-Kylix Articles
    More By Leidago


       · I have tested the sample code included, with Delphi 6 and 7 and it worked fine. If...
       · Hi, i tried the download file but i get the following error: [Fatal Error]...
     

    DELPHI-KYLIX ARTICLES

    - Delphi Wrapper Classes and XML
    - Delphi and the DOM
    - Delphi and XML
    - Internet Access: Client Service
    - Finishing the Client for an Internet Access ...
    - The Client for an Internet Access Control Ap...
    - User Management for an Internet Access Contr...
    - Important Procedures for an Internet Access ...
    - Server Code for an Internet Access Control A...
    - Constructing the Interface for an Internet A...
    - 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...






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