Autor Beitrag
D. Annies
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Mo 15.02.10 13:50 
Hi, Delpher,

Das Label11 hat eine Breite / width von 109 im Entwurf. Mit dem folgenden Code will ich mal die Funktion Minimize anwenden, aber das Label passt sich in der Breite an, was nicht gewünscht ist:

ausblenden Delphi-Quelltext
1:
2:
3:
Label11.Caption := MinimizeName(qFname,        //Der abzukürzende Pfadname
                                  Label11.Canvas, //Die Referenz-Zeichenfläche
                                  Label11.Width); //Die maximale Ausgabe-Breite


Was muss ich machen, um die LabelBreite konstant klein, z.B. = 109 zu halten?

Detlef

_________________
ut vires desint, tamen est laudanda voluntas
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Mo 15.02.10 14:01 
Schau dir TLabel.Autosize an.

_________________
PROGRAMMER: A device for converting coffee into software.
guinnes
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 182
Erhaltene Danke: 14



BeitragVerfasst: Mo 15.02.10 14:02 
Autosize auf False stellen ?
D. Annies Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Mo 15.02.10 14:21 
Danke ihr zwei! So schnell kann es gehen!
Gruß, Det

_________________
ut vires desint, tamen est laudanda voluntas