Autor Beitrag
lemming
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 470

Mac OS 10.3.1
Delphi 6 Pro, Kylix 3
BeitragVerfasst: Mo 10.07.06 07:11 
Hallo liebes Forum,

habt ihr einen Funktion, mit der ich die Pixellänge eines formatierten Strings mir zuürck geben lassen kann?
Ich brauche das um Hochzahlen hinter Strings zu schreiben.

lemmi
Grendel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 443

Gentoo Linux, MacOS X, Win 2000
D5 Ent, D7 Ent, Lazarus, Anjuta, MonoDevelop
BeitragVerfasst: Mo 10.07.06 07:18 
TCanvas bietet die Funktion "TextWidth()". Diese liefert die Breite in Pixel des angegebenen Textes abhängig von den Font Einstellungen des Canvas.

Bis neulich ...
lemming Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 470

Mac OS 10.3.1
Delphi 6 Pro, Kylix 3
BeitragVerfasst: Mo 10.07.06 12:02 
Das ist cool. Danke!