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
  advshape1.Visible := not AdvShape1.Visible;

Yes - the BeginUpdate/EndUpdate worked fine, thanks.