home *** CD-ROM | disk | FTP | other *** search
/ Freelog 11 / Freelog011.iso / BestOf / PhoenixMail / Source / phoenix / FMSelBook.pas < prev    next >
Pascal/Delphi Source File  |  1999-02-05  |  2KB  |  83 lines

  1. {*****************************************************************************
  2.  *
  3.  *  FMSelBook.pas - Move addresses to book form  (24-August-1998)
  4.  *
  5.  *  Copyright (c) 1998-99 Michael Haller
  6.  *
  7.  *  Author:     Michael Haller
  8.  *  E-mail:     michael@discountdrive.com
  9.  *  Homepage:   http://www.discountdrive.com/sunrise
  10.  *
  11.  *  This program is free software; you can redistribute it and/or
  12.  *  modify it under the terms of the GNU General Public License
  13.  *  as published by the Free Software Foundation;
  14.  *
  15.  *  This program is distributed in the hope that it will be useful,
  16.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  17.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18.  *  GNU General Public License for more details.
  19.  *
  20.  *  You should have received a copy of the GNU General Public License
  21.  *  along with this program; if not, write to the Free Software
  22.  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
  23.  *
  24.  *----------------------------------------------------------------------------
  25.  *
  26.  *  Revision history:
  27.  *
  28.  *     DATE     REV                 DESCRIPTION
  29.  *  ----------- --- ----------------------------------------------------------
  30.  *
  31.  *****************************************************************************}
  32.  
  33. unit FMSelBook;
  34.  
  35. interface
  36.  
  37. uses
  38.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  39.   StdCtrls, ComboBoxEx, ExtCtrls, LangSup, PXStuff;
  40.  
  41. type
  42.   TSelBookForm = class(TForm)
  43.     Image1: TImage;
  44.     ComboBox1: TComboBoxEx;
  45.     Label1: TLabel;
  46.     Button1: TButton;
  47.     Button2: TButton;
  48.     procedure FormCreate(Sender: TObject);
  49.   private
  50.     { Private declarations }
  51.   public
  52.     { Public declarations }
  53.   end;
  54.  
  55. var
  56.   SelBookForm: TSelBookForm;
  57.  
  58. implementation
  59.  
  60. {$R *.DFM}
  61.  
  62. uses
  63.   FMAddress;
  64.  
  65. procedure TSelBookForm.FormCreate(Sender: TObject);
  66. var
  67.   I: Integer;
  68. begin
  69.   AttachLanguageToForm(Self);
  70.   if bOfficeFonts then Font.Name := sOfficeFontName;
  71.   I := AddressForm.Combobox1.ItemIndex;
  72.   ComboBox1.Images := AddressForm.ImageList1;
  73.   ComboBox1.Items.Assign(AddressForm.ComboBox1.Items);
  74.   ComboBox1.Values.Assign(AddressForm.ComboBox1.Values);
  75.   ComboBox1.ImgIndexes.Assign(AddressForm.ComboBox1.ImgIndexes);
  76.   ComboBox1.Items.Delete(I);
  77.   ComboBox1.Values.Delete(I);
  78.   ComboBox1.ImgIndexes.Delete(I);
  79.   ComboBox1.ItemIndex := 0;
  80. end;
  81.  
  82. end.
  83.