Hello.
I found an EAccessViolation in PutIntoHiddenGroup. Run attached example and press "Add check" button.
It seems that the newly created group is destroyed during setting its Container property:
Delphifunction TdxLayoutContainer.CreateItem(AItemClass: TdxCustomLayoutItemClass = nil; AParent: TdxCustomLayoutGroup = nil): TdxCustomLayoutItem;
begin
if AItemClass = nil then
AItemClass := GetDefaultItemClass;
Result := AItemClass.Create(ItemsOwner);
Result.Container := Self;
Result.Parent := AParent;
Modified;
end;
Hello,
Thank you for sharing your sample project. I reproduced this exception and forwarded this ticket to our developers for research. It may take us some time to examine this scenario.
Hello, Paulo.
It seems that I found a temporary workaround. I overrode the constructor in the TdxLayoutAutoCreatedGroup class:
constructor TdxLayoutAutoCreatedGroup.Create(AOwner: TComponent); begin inherited Create(AOwner); if (not (csDesigning in ComponentState)) then WrapItemsMode:= wmImmediateChildren; end;
But it will be nice if your developers will suggest a more optimal fix ASAP.