I installed latest CG release "2.4.0.91".
Lock UI renders outside of required region if frame was created after form render.
Updated demo.
MainForm:
delphi code
procedure TIWForm8.IWCGJQButton2JQButtonOptionsClick(Sender: TObject; AParams: TStringList);
begin
CGCallBackDisableAjaxResponse;
try
FrameComp := TIWCGJQFrame1.Create(Self);
FrameComp.Parent := IWCGJQRegionFrame;
FrameComp.Align := alClient;
finally
CGCallBackEnableAjaxResponse;
end;
IWCGJQLockIndicator1.AjaxReRender(); // to render new value for "Control" property
IWCGJQRegionFrame.AjaxReRender();
end;
Frame:
delphi code
procedure TIWCGJQFrame1.IWCGJQFrameCreate(Sender: TObject);
begin
FORM.IWCGJQLockIndicator1.Indicators.Items[1].Control := IWCGJQRegionToLock;
FORM.IWCGJQLockIndicator1.Indicators.Items[1].PositionOptions.InElement := True;
IWCGJQButton2.JQButtonOptions.OnClick.Indicator := FORM.IWCGJQLockIndicator1;
IWCGJQButton2.JQButtonOptions.OnClick.IndicatorIndex := 1;
end;