BSOne.SFC/EM.Lib/ImageEn_SRC/Demos/VideoCapture/MView_VideoCapture/uselectinput.pas

49 lines
946 B
Plaintext

unit uselectinput;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, imageenview;
type
TFormSelectInput = class(TForm)
Label1: TLabel;
ComboBoxVideoInput: TComboBox;
EditVideoSource: TEdit;
Button1: TButton;
Button2: TButton;
procedure FormCreate(Sender: TObject);
procedure FormActivate(Sender: TObject);
private
{ Private declarations }
FInitialized: boolean;
public
{ Public declarations }
ie: TImageEnView;
end;
var
FormSelectInput: TFormSelectInput;
implementation
{$R *.dfm}
procedure TFormSelectInput.FormCreate(Sender: TObject);
begin
FInitialized := false;
end;
procedure TFormSelectInput.FormActivate(Sender: TObject);
begin
if not FInitialized then
begin
ComboBoxVideoInput.Items.Assign(ie.IO.DShowParams.VideoInputs);
FInitialized := true;
end;
ComboBoxVideoInput.ItemIndex := 0;
end;
end.