Re: [Lazarus] Anchoring with negative values

2008-05-24 Thread Mattias Gaertner
On Sat, 24 May 2008 00:26:51 +0300
Valdas Jankūnas [EMAIL PROTECTED] wrote:

 Mattias Gaertner rašė:
 
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?
 
   I always try avoid use of TWinControl where i can (because of 
 additional handle [i heard this rule somewhere from old days]).

very old days.

 
   If i place TImage (AutoSize=True) into Panel then which settings in
 OI i must change to let TPanel always accommodate TImage size?

AutoSize=true

Mattias
 

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Anchoring with negative values

2008-05-24 Thread Valdas Jankūnas
Mattias Gaertner rašė:
   If i place TImage (AutoSize=True) into Panel then which settings in
 OI i must change to let TPanel always accommodate TImage size?
 
 AutoSize=true

  How simple! :) Thanks


-- 
   Valdas Jankūnas
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Anchoring with negative values

2008-05-23 Thread Valdas Jankūnas
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?

-- 
   Valdas Jankūnas
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Anchoring with negative values

2008-05-23 Thread Valdas Jankūnas
Mattias Gaertner rašė:

   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?

  I always try avoid use of TWinControl where i can (because of 
additional handle [i heard this rule somewhere from old days]).

  If i place TImage (AutoSize=True) into Panel then which settings in OI 
i must change to let TPanel always accommodate TImage size?

-- 
   Valdas Jankūnas
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus