constructor TFormB.Create(TheOwner: TComponent);begin inherited Create(TheOwner); Left:=442; Height:=338; Top:=40; Width:=676; Caption:='Incorporate into Database'; Font.Name:='MS Sans Serif'; Button3:=TButton.Create(Self); with Button3 do begin Parent:=Self; Left:=320; Height:=25; Top:=269; Width:=75; Caption:='Okay'; Default:=True; OnClick:=@OkayButtonClick; TabOrder:=0; end; ComboBox1:=TComboBox.Create(Self); with ComboBox1 do begin Parent:=Self; Left:=56; Height:=21; Top:=269; Width:=100; ItemHeight:=13; OnChange:=@ComboBox1Change; TabOrder:=1; end; Label1:=TLabel.Create(Self); with Label1 do begin Parent:=Self; Left:=16; Height:=14; Top:=269; Width:=28; Caption:='Block'; end; Panel1:=TPanel.Create(Self); with Panel1 do begin Parent:=Self; Left:=16; Height:=232; Top:=24; Width:=648; TabOrder:=2; end; ListBox1:=TListBox.Create(Panel1); with ListBox1 do begin Parent:=Panel1; Left:=72; Height:=201; Top:=7; Width:=185; ItemHeight:=0; MultiSelect:=True; OnClick:=@ListBox1Click; ParentShowHint:=False; ScrollWidth:=181; ShowHint:=True; TabOrder:=0; end; Button4:=TButton.Create(Panel1); with Button4 do begin Parent:=Panel1; Left:=264; Height:=25; Top:=24; Width:=67; Caption:='Select All'; OnClick:=@Button4Click; TabOrder:=1; end; Button1:=TButton.Create(Panel1); with Button1 do begin Parent:=Panel1; Left:=264; Height:=25; Top:=64; Width:=67; Caption:='>>'; OnClick:=@Button1Click; TabOrder:=2; end; Button2:=TButton.Create(Panel1); with Button2 do begin Parent:=Panel1; Left:=264; Height:=25; Top:=104; Width:=67; Caption:='<<'; Enabled:=False ; TabOrder:=3; end; Label2:=TLabel.Create(Panel1); with Label2 do begin Parent:=Panel1; Left:=8; Height:=14; Top:=8; Width:=48; Caption:='Attributes:' end; AttrGrid:= TStringGrid.Create(Panel1); with AttrGrid do begin Parent:=Panel1; Left:=360; Height:=200; Top:=8; Width:=256; Anchors:=[akTop, akLeft, akRight, akBottom]; ColCount:=2; FixedRows:=0; TabOrder:=4; end; CheckBox1:= TCheckBox.Create(Panel1); with CheckBox1 do begin Parent:=Panel1; Left:=16; Height:=17; Top:=312; Width:=39; Caption:='Text'; OnClick:=@CheckBox1Click; TabOrder:=3; end; SelectDirectoryDialog1:=TSelectDirectoryDialog.Create(Self);end;
var VReq : boolean; vForm : TForm;begin VReq := RequireDerivedFormResource; RequireDerivedFormResource := False; try vForm := TFormB.Create(application); try vform.showModal; finally VForm.Free; end; finally RequireDerivedFormResource := VReq; end;end;