home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 November
/
Chip_2002-11_cd1.bin
/
zkuste
/
delphi
/
kompon
/
d3456
/
ICQ.ZIP
/
ICQ
/
Example
/
UserSearchWP.pas
< prev
Wrap
Pascal/Delphi Source File
|
2002-07-02
|
3KB
|
122 lines
unit UserSearchWP;
{(C) Alex Demchenko(alex@ritlabs.com)}
interface
uses
Windows, Messages, Classes, Graphics, Controls, Forms,
StdCtrls, ICQWorks;
type
TUserSearchWPForm = class(TForm)
GroupBox1: TGroupBox;
Label1: TLabel;
Label2: TLabel;
FistNameEdit: TEdit;
LastNameEdit: TEdit;
NickNameEdit: TEdit;
Label3: TLabel;
EmailEdit: TEdit;
Label4: TLabel;
MinAgeEdit: TEdit;
Label5: TLabel;
Label6: TLabel;
MaxAgeEdit: TEdit;
GenderComboBox: TComboBox;
Label7: TLabel;
GroupBox2: TGroupBox;
Label8: TLabel;
LanguageComboBox: TComboBox;
Label9: TLabel;
Label10: TLabel;
Label11: TLabel;
CityEdit: TEdit;
StateEdit: TEdit;
CountryComboBox: TComboBox;
SearchOnlineUsers: TCheckBox;
Button1: TButton;
GroupBox3: TGroupBox;
Label12: TLabel;
CompanyEdit: TEdit;
Label13: TLabel;
DepartmentEdit: TEdit;
Label14: TLabel;
PositionEdit: TEdit;
OccupationComboBox: TComboBox;
Label15: TLabel;
PastComboBox: TComboBox;
Label16: TLabel;
PastDescEdit: TMemo;
Label17: TLabel;
InterestComboBox: TComboBox;
Label18: TLabel;
InterestsDescEdit: TMemo;
Label19: TLabel;
Label20: TLabel;
Label21: TLabel;
AffilationDescEdit: TMemo;
Label22: TLabel;
HomePageEdit: TEdit;
AffilationComboBox: TComboBox;
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure Button1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
UserSearchWPForm: TUserSearchWPForm;
implementation
uses
UserSearch;
{$R *.dfm}
procedure TUserSearchWPForm.FormClose(Sender: TObject;
var Action: TCloseAction);
begin
Action := caHide;
end;
procedure TUserSearchWPForm.Button1Click(Sender: TObject);
begin
if UserSearchForm.Showing then
UserSearchForm.Button1.Click;
Close;
end;
procedure TUserSearchWPForm.FormCreate(Sender: TObject);
var
i: Word;
begin
//Fill in language combobox
for i := Low(Languages) to High(Languages) do
LanguageComboBox.Items.Add(Languages[i].Value);
//Fill in country combobox
for i := Low(Countries) to High(Countries) do
CountryComboBox.Items.Add(Countries[i].Value);
//Fill in occupation combobox
for i := Low(Occupations) to High(Occupations) do
OccupationComboBox.Items.Add(Occupations[i].Value);
//Fill in past combobox
for i := Low(Pasts) to High(Pasts) do
PastComboBox.Items.Add(Pasts[i].Value);
//Fill in interest combobox
for i := Low(Interests) to High(Interests) do
InterestComboBox.Items.Add(Interests[i].Value);
//Fill in affiliation combobox
for i := Low(Affiliations) to High(Affiliations) do
AffilationComboBox.Items.Add(Affiliations[i].Value);
end;
end.