Home arrow Delphi-Kylix arrow Page 3 - Building a Mailing List with Borland Delphi
DELPHI-KYLIX

Building a Mailing List with Borland Delphi


Mailing lists can be useful for a variety of purposes. If you have a newsletter that you use to communicate with your customers, chances are you use a mailing list. This article, the first of two parts, will show you how to build a mailing list application.

Author Info:
By: Leidago
Rating: 4 stars4 stars4 stars4 stars4 stars / 3
September 27, 2006
TABLE OF CONTENTS:
  1. · Building a Mailing List with Borland Delphi
  2. · The Database
  3. · Building the GUI for the Application
  4. · How the program works
  5. · Status reports

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

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.


blog comments powered by Disqus
DELPHI-KYLIX ARTICLES

- Loading an XML Document into the DOM
- 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...

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 6 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials