Automatic License Entry

Discussions about document viewing.
Post Reply
BCWGuy
Posts: 19
Joined: Fri Jun 03, 2011 8:05 pm

Automatic License Entry

Post by BCWGuy » Fri Jun 03, 2011 8:10 pm

I'm using Delphi 2007, and would like to have my License key be automatically entered when I drop a new gdPicture control on a form or create it dynamically. I've tried modifying the GdPicturePro5_TLB.pas file Delphi uses for thins like InitControlData, and I've tried making a .LIC file, but nothing has worked so far. It would be great if the control checked for a registry setting to obtain the license key, and the installeer could put that value in the registry (just for developers).

Any ideas or examples how I can avoid pasting in the license key each time I create a control or drop it on a form?

BCWGuy
Posts: 19
Joined: Fri Jun 03, 2011 8:05 pm

Re: Automatic License Entry

Post by BCWGuy » Mon Jun 06, 2011 5:45 pm

Never mind. It turns out that doing this works in the DoCreate methods of the pas file:
FIntf.SetLicenseNumber('xxxxxx');

The only problem is that the license doesn't show up in the design-time properties, but it does work.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest