Autor Beitrag
Takeshi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64



BeitragVerfasst: Mo 06.10.03 14:52 
Hallo.

Ich möchte gerne die Länge in Pixeln, die ein String in einer bestimmten Font hat ermittlen.
Man kennt das ja von Pfadangaben, im Explorer zb. Wenn der Platz nicht mehr ausreicht, um den Pfad anzuzeigen, kommen am Ende "C:\Pfad\asdf..."
Genau das Problem habe ich auch, wenn ich nen Pfad als Caption auf ein Panel setze.
Leider kenne ich nichts, was mir weiterhelfen könnte und bitte um Hilfe.

Gruß, Takeshi
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Mo 06.10.03 14:59 
zur pixelfrage: canvas.textwidth. Dir könnte aber auch Suche in: Delphi-Forum, Delphi-Library MINIMIZENAME weiterhelfen.

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
Takeshi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64



BeitragVerfasst: Di 07.10.03 00:08 
superdanke :mrgreen: