CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Loading frame on DialogEx issues

by bryl » 15 Aug 2017 22:49

Hi,
I am using the following code to load a frame onto a Dialog, the first time the frame paints fine, the second time I load the frame the
buttons and other items that use themes do not repaint.


Image


here is the code to load the frame

Procedure TfrmMain.ShowService(id: string);
var
FRM: TfServiceEntry;
NewName: string;
begin
//NewName:= CGFindUniqueComponentName(Self,'DlgServiceMain');
Frm := Application.FindComponent('DlgServiceMain') as TfServiceEntry;
if not assigned(frm) then begin
FRM:=TfServiceEntry.create(nil);
FRM.Name:='DlgServiceMain';
Frm.Parent:=dlg;//dlgservice;
frm.Align:=alclient;
frm.lblid.caption:=id; //customerserviceid tracker
end;
with dlg do begin
BringToFront;
Visible:=true;
Height:=frm.Height;
Width:=frm.Width;
Left:=(screen.Width-Width)div 2;
top:=(screen.height-height)div 2;
RenderRegionAsync(dlg,rramLazyLoadMethod,True);
end;
end;

Thanks for any help
Bryan
bryl
 
Posts: 15
Joined: 23 Mar 2017 17:23

by Alexander Bulei » 16 Aug 2017 09:28

Hi bryl,

Please use the correct method of frame creation, as we have in our demo....with CGCallBackDisableAjaxResponse and CGCallBackEnableAjaxResponse.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQDialogEx

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.