Ja genau die habe ich benutzt und denAufruf aus der Hilfe habe ich zum Test auch gleich benutzt...
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
var
SourceIndex: Integer;
Source: TTwainSource;
begin
//Make sure that the library and Source Manager
//are loaded
DelphiTwain1.LibraryLoaded := TRUE;
DelphiTwain1.SourceManagerLoaded := TRUE;
//SelectSource method displays a common Twain dialog
//to allow the user to select one of the avaliable
//sources and returns it's index or -1 if either
//the user pressed Cancel or if there were no sources
SourceIndex := DelphiTwain1.SelectSource();
if (SourceIndex <> -1) then
begin
//Now that we know the index of the source, we'll
//get the object for this source
Source := DelphiTwain1.Source[SourceIndex];
//Load source and acquire image
Source.Loaded := TRUE;
Source.Enabled := TRUE;
end {if (SourceIndex <> -1)}
end;
Kann man den in D2010
Unicode irgendwo in den Optionen abschalten und somit solche Komponenten auch weiterbenutzen?
Grüße
Renato