Hi!
How to change ExStyle for the form of the script?
You can use your own script form class. Check https://www.tmssoftware.com/site/forum/forum_posts.asp?TID=11473&PID=42069&title=how-to-know-when-the-ideengine-has-completed-work#42069
Inherit from TScriptForm and add any custom code you want to it, then set the ScriptFormClass property to tell scripter which is the form class used for script forms.
I need some forms to be inherited from one class, and some from another. I can do this ?
I try this:
TFormMy = class(TScriptForm)
private
FShowInTaskBar: boolean;
{ Private declarations }
protected
procedure CreateParams(var Params: TCreateParams); override;
public
{ Public declarations }
constructor Create(AOwner: TComponent; ShowInTaskBar: boolean = false); reintroduce;
property ShowFormInTaskBar: boolean read FShowInTaskBar write FShowInTaskBar;
end;
constructor TFormMy.Create(AOwner: TComponent; ShowInTaskBar: boolean = false);
begin
FShowInTaskBar:= ShowInTaskBar;
inherited Create(AOwner);
end;
procedure TFormMy.CreateParams(var Params: TCreateParams);
begin
inherited CreateParams(Params);
if FShowInTaskBar then
Params.WndParent:= GetDesktopWindow;
end;
How to call a new constructor with two parameters? The script can not see them
You can't. Scripter will use the virtual constructor Create declared in TComponent ancestor.