Page 1 of 1

Create on runtime ?

PostPosted: 27 Feb 2018 11:17
by c.schwoerer
Hello,
I have a problem to create the DialogEx in runtime
I did:
Code: Select all
procedure TIWForm2.IWCGJQButton2JQButtonOptionsClick(Sender: TObject;
  AParams: TStringList);
begin
  ParamDialog:=TIWCGJQDialogEx.Create(self);
  try
    ParamDialog.JQDialogOptions.Title:='Parambox';
    ParamDialog.Height:=100;
    ParamDialog.Width:=300;
    ParamDialog.Visible:=True;
    ParamDialog.AjaxReRender(false,rramOldMethod);
  Except
    on e:Exception do begin
      WebApplication.ShowMessage(e.Message);

    end;
  end;
end0;

and get a exception:
"Region "" does not have a valid container Parent!"

What do I wrong?

Re: Create on runtime ?

PostPosted: 27 Feb 2018 12:31
by Jorge Sousa
Hi

What do I wrong?


Dialog doesn't have a Name and a Parent

Re: Create on runtime ?

PostPosted: 28 Feb 2018 08:14
by c.schwoerer
Upps - I'am sorry - my fault.
Thank's a lot