Autor Beitrag
foxy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Di 06.05.03 11:08 
gudään all
ne kurze frage

wie kann ich abfragen, ob min programm sprich mainFrm minimiert ist

hab versucht mit form1.focus;

aber rofl iss ja kein boolscher wert :?

also hab ich versucht abzufragen setFocused

aber au nix ... weis da einer weiter
mit WindowState gehts auch nich, weil das ja nur die anfangsposition des fensters zurückgibt ....

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)
neojones
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Di 06.05.03 11:18 
ausblenden Quelltext
1:
WindowState = wsMinimized					


Viele Grüße,

Matthias

_________________
Ha! Es compiliert! Wir können ausliefern!
foxy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Di 06.05.03 11:22 
hast du meinen Post gelesen :twisted:

zwar thx für den beitrag nur bringen tut er nix

windowState gibt nur die Position zurück nach der FormCreate, wenn diese zur laufzeit verändert wird, und ich das so abfrage passiert Nüchts

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)
neojones
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Di 06.05.03 11:29 
Mit WindowState=wsMinimized prüfst Du ab, ob das Fenster minimiert ist!!!

Vielleicht schreibst Du mal dazu, was genau Du machen willst!!!

Willst Du abfangen, dass das Fenster nicht minimiert werden kann???

Übrigens: Schau mal in die Hilfe! WindowState hat mit der Position nichts, aber auch gar nichts zu tun!

Zitat:

Die Eigenschaft WindowState gibt an, wie das Formular auf dem Bildschirm angezeigt wird.

property WindowState: TWindowState;

Beschreibung

Mit WindowState können Sie bestimmen, ob das Formular normal, minimiert (als Symbol) oder maximiert (Vollbild) geöffnet wird.

_________________
Ha! Es compiliert! Wir können ausliefern!
foxy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Di 06.05.03 11:32 
lies ma den letzten satz
Zitat:
Mit WindowState können Sie bestimmen, ob das Formular normal, minimiert (als Symbol) oder maximiert (Vollbild) geöffnet wird.


naja egal ich habs gefunden
ausblenden Quelltext
1:
2:
3:
4:
procedure TForm1.WMSysCommand(var Msg: TWMSysCommand); 
begin 
  if (Msg.CmdType = SC_MINIMIZE) then 
end;

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)
neojones
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Di 06.05.03 11:37 
Wenn ich die Frage

Zitat:

wie kann ich abfragen, ob min programm sprich mainFrm minimiert ist


lese, dann ist die Antwort

Zitat:

Mit WindowState können Sie bestimmen, ob das Formular normal, minimiert (als Symbol) oder maximiert (Vollbild) geöffnet wird.


doch richtig, oder?


Viele Grüße,

Matthias

_________________
Ha! Es compiliert! Wir können ausliefern!
foxy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Di 06.05.03 11:38 
ey ist doch egal ... ich habs nu dank dir trotzdem

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Di 06.05.03 12:06 
Einfache Abrfrage geht mir IsIconic(<Handle>). Wenn du das "Minimieren-Ereignis" reagieren willst entweder auf WM_SYSCOMMAND (so wie du) oder auf WM_SIZE reagieren...

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!