Autor Beitrag
BlackPhantom
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 144

Win 2000, Win XP, UNIX
D7 Prof, C, HTML, VB 5
BeitragVerfasst: Do 03.07.03 17:30 
Hi@all

Ich habe folgendes Problem:

Ich habe ein Label was beim Complimieren einen mehrzeiligen Text ausspuckt (also mit ' '+#13#10+)
wie bekomme ich es hin das wenige bestimmten Zeilen eine andere Schriftgröße/Farbe/ Dicke usw. erhalten?

Geht das überhaupt? Wenn ja wie?
Oder ist die einzige Lösung mehrere Labels zu verwenden?

thx@all
MFG
BlackP
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 03.07.03 18:18 
das geht nicht.
Die bessere Methode ist, du erstellt ein neue Class TColorLabel(TLabel) und überschreibst die Paint() Methode oder nutzt gleich die Paintbox und schreibt den Text selbst.
grez
msch
BlackPhantom Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 144

Win 2000, Win XP, UNIX
D7 Prof, C, HTML, VB 5
BeitragVerfasst: Do 03.07.03 18:27 
Ak Danke......wäre nicht schlecht wenn du mir auch noch erklären könntest woran es harpert, dass man nicht die Farbe ändern kann. Sollte es jedoch grundsätzlich nicht gehen und sollte es auch keine Erklärung geben dann ist auch egal.

MFG
BlackP
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Do 03.07.03 21:41 
Einem Label kannst du nur eine bestimmte Farbe geben. Das ist halt der Hacken. Ich würde zwei unterschiedliche tLabels nehmen und fertig.

Gruß
Tino
Cruiser23
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 191

WinXP
D7 Prof.
BeitragVerfasst: Do 03.07.03 21:56 
Wie wärs wenn du ein TRichEdit dafür nimmst? Soweit mir bekannt is das damit einfach. BorderStyle auf bsNone und ParentColor auf true, damit siehts dann auch aus wie ein Label.

_________________
Du steckst immer in der Sch****, das einzige, was sich ändert, ist die Tiefe!