Autor Beitrag
ALF
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1085
Erhaltene Danke: 53

WinXP, Win7, Win10
Delphi 7 Enterprise, XE
BeitragVerfasst: Sa 26.06.10 12:52 
Hi, Der Grund, bei den ScrollBoxen erkennt man nicht wann sie den Focus haben!
Ich möchte also die hintergrund Farbe dann verändern, wenn ich mit der TabTaste die einzelnen Scrollboxen selektiere. Mit der Maus ist dies ja kein Problem, aber mit der Tabtaste und TabOrder!?
Zu mindestens weiss ich nicht, in welchem Ereignis ich dies Prüfen kann oder wie ich dies rausbekomme!?

Info: Die Scrollboxen befinden sich mit anderen Komponenten jeweils in einer GroupBox.
Die Komponenten, die ich nicht selektiert haben will, haben TabStop False.


Gruss Alf

_________________
Wenn jeder alles kann oder wüsste und keiner hätt' ne Frage mehr, omg, währe dieses Forum leer!
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Sa 26.06.10 15:05 
Hallo,

in OnEnter:
ausblenden Delphi-Quelltext
1:
2:
  if TScrollBox(Sender).TabStop then
    TScrollBox(Sender).Color := clYellow;

in OnExit
ausblenden Delphi-Quelltext
1:
2:
  if TScrollBox(Sender).TabStop then
    TScrollBox(Sender).Color := clBtnFace;

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )

Für diesen Beitrag haben gedankt: ALF
ALF Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1085
Erhaltene Danke: 53

WinXP, Win7, Win10
Delphi 7 Enterprise, XE
BeitragVerfasst: Sa 26.06.10 15:26 
SuperDanke !

Man kann alt werden wie man will, man lernt doch immer was neues dazu! :lol:
Gruss Alf

_________________
Wenn jeder alles kann oder wüsste und keiner hätt' ne Frage mehr, omg, währe dieses Forum leer!