Autor Beitrag
Karabulut
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: Mo 28.07.03 02:15 
ich hab nen label, also nen text
und will jetzt das wenn ich mit der maus drüber geh der sich anders färbt und nen ton erzeugt wird
wie macht man das?
Cruiser23
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 191

WinXP
D7 Prof.
BeitragVerfasst: Mo 28.07.03 03:31 
Nimm die Ereignisse OnMouseEnter und On MouseLeave
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
OnMouseEnter:

Label1.Color := clred;
Label1.Refrash;

OnMouseLeave :

Label1.Color := clBtnFace;
Label1.Refresh;

_________________
Du steckst immer in der Sch****, das einzige, was sich ändert, ist die Tiefe!
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Mo 28.07.03 05:56 
Wenn du aber mehr eine Art Link haben willst must du
ausblenden Delphi-Quelltext
1:
Label1.Font.Color := clRed;  //oder eine andere Farbe					

verwenden.
Den Ton kannst du mit
ausblenden Delphi-Quelltext
1:
Beep;					

erzeugen.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
patrick
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1481

WIN2k, WIN XP
D6 Personal, D2005 PE
BeitragVerfasst: Mo 28.07.03 11:25 
oder den bildschirm in nen farbtopf schmeißen und warten bis es knallt :rofl:
-entschulding aber ich bin heut den ganzen tag schon so albern :oops:

_________________
Patrick
im zweifelsfall immer das richtige tun!!!
Karabulut Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: Mo 28.07.03 12:23 
kann ich irgendwie nen ereignis machen
das selber erkennt über welchem label ich gerade bin??
also label 2 label 3 oder so, sonst muss ich ja für jedes label über das ich gehen will nen eigenes ereignis machen
ShadowThief
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 278



BeitragVerfasst: Mo 28.07.03 12:28 
ja schon, du machst das einmal für ein label und schreibst dann
statt:

ausblenden Delphi-Quelltext
1:
Label1.Font.Color := clRed					


einfach

ausblenden Delphi-Quelltext
1:
(Sender as TLabel).Font.Color := clRed					


und dann kannst du die gleiche procedur als ereignis für jede komponente
verwenden.
Karabulut Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: Mo 28.07.03 12:31 
hey danke
hat toll geklappt