TAdvGlowButton Alignment

The TAdvGlowButton does not take MarginVert or MarginHorz into account when positioning glyph and caption.


What it is:

What it should be:

Something like this:

  if (Layout = blGlyphTopAdjusted) and not AutoSize then
    r.Top := r.Top + MargV;

Best regards

Forgot to mention that it only works with blGlyphLeftAdjusted

We've applied the improvement for MarginVert. When the layout is top or top adjusted, horiz. margin is not used.