CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Create on runtime ?

by c.schwoerer » 27 Feb 2018 11:17

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?
c.schwoerer
 
Posts: 18
Joined: 25 Jan 2018 11:09

by Jorge Sousa » 27 Feb 2018 12:31

Hi

What do I wrong?


Dialog doesn't have a Name and a Parent
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by c.schwoerer » 28 Feb 2018 08:14

Upps - I'am sorry - my fault.
Thank's a lot
c.schwoerer
 
Posts: 18
Joined: 25 Jan 2018 11:09


Return to JQDialogEx

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.