tAdvShape on tAdvPanel Problems

If you put a tAdvShape on a normal tPanel with a button that flips the shape Visible property, the shape does what it is told (Visible/Invisible). However if you put a tAdvShape on a tAdvPanel with the same button, after the Visible property is cycled false => true, the shape is not drawn correctly. The actual drawn image depends on the shape's AutoSize property, but is incorrect in both cases. This is very simple to reproduce. See these images:

As Designed - first displayed

After Invisible => Visible cycle

We will investigate.
Meanwhile, two workarounds:

  1. set AdvPanel.DoubleBuffered = false
  2. Use
begin
  AdvPanel1.BeginUpdate;
  advshape1.Visible := not AdvShape1.Visible;
  AdvPanel1.EndUpdate;
end;

Yes - the BeginUpdate/EndUpdate worked fine, thanks.