Autor Beitrag
ibh_compucat
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 130

Win 2000, Win 8.1
D6, Ent. XE5 Ent.
BeitragVerfasst: Fr 17.09.04 12:55 
Hallo,
wenn ein Edit angesteuert wird, dann wird der jeweilige Inhalt blau unterlegt. Wie kann man diesen Zustand abfragen?

gruß ibh_compucat

_________________
Was du nicht begreifst, kannst du nicht verlernen!
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Fr 17.09.04 12:58 
Hi,

Das Ereignis OnEnter wird ausgelöst, wenn dein Edit den Fokus bekommt (oder blau wird :wink: )
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6393
Erhaltene Danke: 147

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Fr 17.09.04 12:58 
Ich glaube da gibt es irgendwo eine Eigenschaft SelectedText.
grayfox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 800

win98, winXP
D4 Standard; D6 Personal
BeitragVerfasst: Fr 17.09.04 13:07 
hallo compucat!

du könntest es mal mit

if edit1 = blau ...

versuchen, aber ich denke

if edit1.focused ... ist zielführender ;)

mfg, stefan
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6393
Erhaltene Danke: 147

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Fr 17.09.04 13:10 
Habe Deine Frage zu schnell gelesen. Da war mir dann schwindelig. Jetzt gehts wieder.
Mit ActiveControl kannst Du sogar feststellen wer gerade den Focus hat.