Autor Beitrag
OliverN_26
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 252

Win7 64-Bit, WinXP SP3
Delphi 7 Enterprise
BeitragVerfasst: Do 16.12.10 21:41 
Hi Leute.

Wie man die Farbe, Schriftgröße oder Schriftfarbe eines Hints ändert ist mir klar.
Mich interessiert allerdings ob ich mehrere Farben innerhalb eines Hints nutzen kann ?!
Oder kennt jemand eine nutzbare Komponente?

Also z.B.:

ausblenden Quelltext
1:
Hint := {BLAU} 'Projekt: ' + {ROT} 'Hint färben';					



Vielen Dank im voraus.
lg
Gerd Kayser
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 632
Erhaltene Danke: 121

Win 7 32-bit
Delphi 2006/XE
BeitragVerfasst: Fr 17.12.10 04:34 
user profile iconOliverN_26 hat folgendes geschrieben Zum zitierten Posting springen:
Wie man die Farbe, Schriftgröße oder Schriftfarbe eines Hints ändert ist mir klar.
Mich interessiert allerdings ob ich mehrere Farben innerhalb eines Hints nutzen kann ?!
Das wirst Du wohl selber schreiben müssen. Siehe z. B. hier: entwickler.com/itr/o...d,534,nodeid,56.html
Bei Delphi ab 2009 soll es meines Wissens TCustomHint geben.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Fr 17.12.10 10:31 
user profile iconGerd Kayser hat folgendes geschrieben Zum zitierten Posting springen:
Bei Delphi ab 2009 soll es meines Wissens TCustomHint geben.
Richtig, das gibt es da.

Es gibt aber vor allem auch TCustomHintWindow. Davon kann man eine eigene Klasse ableiten und die Paint Methode überschreiben. Dann kann man sich nach Herzenslust austoben. ;-)

// EDIT:
Ich sehe grad, das wird in dem Artikel ja auch alles beschrieben.
Bernhard Geyer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 721
Erhaltene Danke: 3



BeitragVerfasst: Fr 17.12.10 10:37 
Oder z.B. das ElPack nehmen. Dieses hat einen Hint das mit einem abgespeckten HTML-Sprachumfang umgehen kann.
OliverN_26 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 252

Win7 64-Bit, WinXP SP3
Delphi 7 Enterprise
BeitragVerfasst: Fr 17.12.10 16:31 
Super :-)
Vielen Dank. Werd das mal durchgehen

lg