Einzelnen Beitrag anzeigen

Niko

Registriert seit: 23. Jun 2003
416 Beiträge
 
Delphi 2006 Professional
 
#2

Re: Einträge in TListbox zentrieren?

  Alt 14. Mär 2004, 18:16
Dazu musst du in dem CodeLibrary-Beitrag nur die Berechnung von iTemp ändern:
Delphi-Quellcode:
//...
iTemp := (Rect.Right - Rect.Left - Canvas.TextWidth(sTemp)) div 2;
//...
"Electricity is actually made up of extremely tiny particles called electrons, that you cannot see with the naked eye unless you have been drinking." (Dave Barry)
  Mit Zitat antworten Zitat