Autor Beitrag
wisher
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 54
Erhaltene Danke: 1



BeitragVerfasst: Mi 23.03.05 14:54 
hallo,

wenn ich im create des hauptformulars folgende zeile einfüge:

Application.OnMinimize := Minimieren;

kann ich im methodenzeiger "minimieren" das minimieren-ereignis abfangen. dies gilt zumindest für
das hauptformular. allerdings klappt das nicht in einem unterformular, welches also
nicht als hauptformular der anwendung registriert ist. was kann ich da machen ?

vielen dank schon mal !


sascha
patrick
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1481

WIN2k, WIN XP
D6 Personal, D2005 PE
BeitragVerfasst: Sa 26.03.05 20:15 
ich bin heute ein mann weniger worte 8):
ausblenden Delphi-Quelltext
1:
2:
if FormXY.WindowState:=wsMinimzed then 
     ...

_________________
Patrick
im zweifelsfall immer das richtige tun!!!
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Sa 26.03.05 20:47 
Das Minimieren der Applikation ist nicht dasselbe wie das Minimieren eines Forms. Wie man das Minimieren eines Forms abfängt, siehe hier.

@patrick: Auch wenn man in der Lösung ":=" durch "=" ersetzt beantwortet es die Frage glaub ich nicht... ;)
patrick
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1481

WIN2k, WIN XP
D6 Personal, D2005 PE
BeitragVerfasst: So 27.03.05 11:16 
user profile icondelfiphan hat folgendes geschrieben:
@patrick: Auch wenn man in der Lösung ":=" durch "=" ersetzt beantwortet es die Frage glaub ich nicht... ;)

:oops: das kommt davon wenn man nochmal was anderes schreibt als man eigendlich vor hatte.
ich wollte mich grad nicht mehr durch das MSDN wühlen :wink: das nächste mal wieder qualität vor quantität :P

_________________
Patrick
im zweifelsfall immer das richtige tun!!!