Einzelnen Beitrag anzeigen

Renaton

Registriert seit: 26. Jan 2010
Ort: Ahrensfelde
5 Beiträge
 
Delphi 2010 Enterprise
 
#5

AW: TwainQuellenAuswahl mit Delphi2010 geht nicht

  Alt 9. Aug 2010, 10:18
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
  Mit Zitat antworten Zitat