Link to home
Start Free TrialLog in
Avatar of sesa
sesa

asked on

Taction in DLL

I think that Taction.OnUpdate event does not respond if it is defined in DLL.

Example:
  I put TTable object and couple of buttons for navigating on the form.
Each button.action is set to some of standard actions (DataSetFirst, DataSetNext, etc.)

All mentioned above is designed in DLL which is dinamically linked.

When I create Form which is in that DLL, navigation buttons does not work.

Please, HELP!!!
ASKER CERTIFIED SOLUTION
Avatar of rwilson032697
rwilson032697

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Epsylon
Epsylon

How do you create the form in the DLL?
When I do it like this TAction.OnUpdate works fine for me...


library DllProject1;

uses
  SysUtils,
  Classes,
  Forms,
  DllUnit1 in 'DllUnit1.pas' {Form1};

{$R *.RES}

begin
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
end.
Avatar of sesa

ASKER

Thanks!!!