Any questions? Ask us: support@enigmaprotector.com

[Delphi] create child form after registration TRUE

Post here any topics that related to Enigma Protector, its functionality, your misunderstanding, offers to improvements etc etc etc

[Delphi] create child form after registration TRUE

Postby Pat666 » Thu Aug 28, 2014 5:06 am

Hi,
I have a multiform application.
What i want to do is, my main form can be opened normally without any enigma registration is active.
Until a user press a button that will call form 2. Is it possible ?

The code will be like this

Code: Select all
var Activation : Boolean;
...
...
if Activation = True then
  begin
    Application.CreateForm(TForm2, F2);
    F2.Parent := Form1.panel1;
...


BR
Pat666
 
Posts: 8
Joined: Wed Nov 20, 2013 1:15 pm

Re: [Delphi] create child form after registration TRUE

Postby Enigma » Tue Sep 02, 2014 6:46 am

Hi, yes, sure, that's possible.

There are two ways how you can do that:
1. on the Registration Panel - Registration Dialog, enable this dialog, however, disable the option Show if Unregistered.
Then, inside your code, you may show a registration dialog by calling the Enigma API function EP_RegShowDialog.
2. just create a custom registration dialog with custom fields. Register the application with the function EP_RegCheckAndSaveKey and check if the application is registered by the function EP_RegLoadAndCheckKey.
Enigma
Site Admin
 
Posts: 2212
Joined: Wed Aug 20, 2008 2:24 pm


Return to Basic

Who is online

Users browsing this forum: No registered users and 14 guests