Thema: Delphi Right-align

Einzelnen Beitrag anzeigen

VT

Registriert seit: 9. Dez 2002
11 Beiträge
 
#2

Re: Right-align

  Alt 1. Jan 2010, 15:59
your method has a parameter called ARect which states the clipping rectangle for your item which gives you the horizontal dimension of the current entry. so the calculation has to be:

ARect.Right - %TextWidth%
  Mit Zitat antworten Zitat