home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1999 March
/
Chip_1999-03_cd.bin
/
zkuste
/
delphi
/
INFO
/
DI9806FN.ZIP
/
source
/
prjid_lb.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1998-02-11
|
974b
|
47 lines
unit PrjID_LB;
interface
uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
Buttons, ExtCtrls;
type
TSelectIdentifierDlg = class(TForm)
CDK_Container1: TPanel;
ListBox1: TListBox;
BitBtn1: TBitBtn;
BitBtn2: TBitBtn;
Label1: TLabel;
private
{ Private declarations }
public
{ Public declarations }
function Execute(var SelectedItem : string;
TempStrings : TStringList): boolean;
end;
var
SelectIdentifierDlg: TSelectIdentifierDlg;
implementation
{$R *.DFM}
function TSelectIdentifierDlg.Execute(var SelectedItem : string;
TempStrings : TStringList): boolean;
begin
ListBox1.Clear;
ListBox1.Items.Assign(TempStrings);
SelectedItem := '';
ShowModal;
if ModalResult=mrOK then
begin
if ListBox1.ItemIndex>=0 then
SelectedItem := ListBox1.Items[ListBox1.ItemIndex];
Result := true;
end
else
result := False;
end;
end.