Autor Beitrag
Heinz-Peter Klein
Hält's aus hier
Beiträge: 2



BeitragVerfasst: Mo 14.01.08 09:24 
Hallo,

weiß jemand, wie ich die Werte in einer Listbox zentrieren kann.

Vielen Dank schon vorab

HPK
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Mo 14.01.08 09:51 
Hallo,

im Ereignis OnDrawItem die Einträge zentriert ausgeben.

ListBox.Style auf lbOwnerDrawFixed oder lbOwnerDrawVariable einstellen.
Zur Textausgabe DrawText mit der Konstante DT_CENTERverwenden.

Nähere Informationen findest Du genug hier im Forum.

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
GericasS
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 540

Windows Vista Home Premium
D2010, VisualStudio2008
BeitragVerfasst: Mo 14.01.08 10:42 

_________________
Alexander N.
Neue Bewaffnung Amilo xi2428 T9300