home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
delphi
/
imagelib
/
usimple.pa_
/
usimple.pa
Wrap
Text File
|
1995-10-01
|
1KB
|
56 lines
{Part of Imagelib VCL/DLL Library.
Written by Jan Dekkers and Kevin Adams (c) 1995. If you are a non
registered client, you may use or alter this demo only for evaluation
purposes.
Uses ImageLib 3.0 Changed the callback to a function instead of a
procedure to let the user cancel out. Added:
Changed callback in version 2.21 to a function with cdecl.
using the C calling convention.
scrolling text images
Cut, Copy and Paste to/from the clipboard
Printing bitmaps}
unit Usimple;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Tmultip;
type
TSimpleForm = class(TForm)
Button1: TButton;
OpenDialog1: TOpenDialog;
MultiImage1: TPMultiImage;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
SimpleForm: TSimpleForm;
implementation
{$R *.DFM}
procedure TSimpleForm.Button1Click(Sender: TObject);
begin
if OpenDialog1.execute then begin
Screen.Cursor:=CRHOURGLASS;
MultiImage1.Imagename:=OpenDialog1.filename;
Screen.Cursor:=CRDEFAULT;
end;
end;
end.