Autor Beitrag
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Do 21.08.03 18:54 
Hallo!

Also ich möchte so ne Art ColorComboBox haben also mal ich halt bei onMeasureDrawItem meine Farbigen Kästen('ComboBox1.Canvas.rect(2,2,140,50)' oder so). Alles schön und Gut, wenn ich das jetzt aber auswähle schiebt sich das so blöd nach oben. Wie kann ich das verhindern?

Stefan

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: Do 21.08.03 19:19 
oje,
onmeasureItem gibt nur die Größe des Items zurück, gezeichnet wird bei OnDrawItem().
Versuchs mal damit.
grez
msch
StefanH Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Fr 22.08.03 10:25 
:oops: Das kommt davon, wenn man es aus dem Gewissen schreibt.
onDrawItem mein ich

:lol:

Stefan

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)