Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, July 28, 2006 9:36:13 AM(UTC)
lonniewp

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.
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, August 1, 2006 6:04:21 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

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:07:13 AM(UTC)
lonniewp

Groups: Registered
Posts: 2


Do you have a Delphi example of the same code snippet?

Thanks.
 
#4 Posted : Thursday, August 3, 2006 3:44:45 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

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.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.158 seconds.