[Lazarus] Anchoring with negative values
Mattias Gaertner
nc-gaertnma at netcologne.de
Fri May 23 19:15:05 CEST 2008
On Fri, 23 May 2008 19:15:38 +0300
Valdas Jankūnas <skroblas at erdves.lt> wrote:
> Hello,
>
> on Form is placed Image, image at runtime can resize, image anchors
> to Form at horizontal center.
> I want make border around Image with Bevel, border must adapt
> change of size of Image. So i think: "all sides of Bevel need anchor
> to corresponding sides of Image with BorderAround=-1", but i cant set
> Border size to negative values.
> As workaround i use Image.OnResize to adjust size and position of
> Bevel.
>
> Why Border size in BorderSpacing is restricted to only positive
> values?
To avoid overlapping.
If you want an image with a border, why not put the TImage into a
TPanel or TGroupBox?
Mattias
More information about the Lazarus
mailing list