I been trying to centre names in abox automaticly because of short and
longs names the code below works but I can not work out how to make it
auto add long or short names to the centre and can one help me or
recode this thanks alot ..
PaintInfo.Canvas.Pen.Color:= $004A4AFF;
PaintInfo.Canvas.Rectangle(n+20,0,n+20+PaintInfo.Canvas.TextWidth
(s)+119,
PaintInfo.Canvas.TextHeight(IMData.Name)+2 div 2);
PaintInfo.Canvas.Font.Color := $004A4AFF; // Account Color
PaintInfo.Canvas.Draw(n, t, ResForm.Admin.Picture.Bitmap);
n := n + 15; // Account Icon
PaintInfo.Canvas.TextOut(n + 45 , 0, IMData.Name); // Screen Name
-------------------------------------------------------
Home: http://groups.yahoo.com/group/delphi-programming/
Remove: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-programming/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/