This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, July 28, 2006 9:31:13 AM(UTC)
Groups: Registered
Posts: 2
Is there a way to use LEADMain without installing the component on a form. The code module I am placing this in does not have a form, and I can't figure out how to get LEADMain created.
Thanks.
#2
Posted
:
Tuesday, August 1, 2006 5:59:21 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
You can create the LEAD Main control v14.5 programmatically by using the following code:
+---------------------+
Dim LEAD2
Set LEAD2 = CreateObject("LEAD.LEADCtrl.140")
LEAD2.Load "c:\1.bmp", 0, 1, 1
+---------------------+
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#3
Posted
:
Tuesday, August 1, 2006 6:02:13 AM(UTC)
Groups: Registered
Posts: 2
Do you have a Delphi example of the same code snippet?
Thanks.
#4
Posted
:
Thursday, August 3, 2006 3:39:45 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
For our VCL 14 main control, you need the following:
1. Add LEADMain to the form's USES section.
2. Use the following code to create the control dynamically:
+------------------+
var
LeadCtrl : TLEADImage;
begin
LeadCtrl := TLEADImage.Create(Self);
LeadCtrl.Parent := Self;
LeadCtrl.Left := 10;
LeadCtrl.Top := 10;
LeadCtrl.Width := 800;
LeadCtrl.Height := 600;
LeadCtrl.Visible := True;
LeadCtrl.Load('MonaLisa.jpg', 0, 1, 1);
end;
+------------------+
Regards,
Maen Badwan
LEADTOOLS Technical Support
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.