Autor Beitrag
r4id3n
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 115

Win XP Home, Win XP Pro
D6 Prof, D7 Ent, K3 Ent
BeitragVerfasst: Mi 29.06.05 17:13 
Hallo Community, ich habe ein interesanntes Problem:

Ich möchte meine Anwendung gerne minimieren, jedoch hier das Problem:

Mein Programm zeigt einen modalen Dialog an, von dem aus das KOMPLETTE Programm minimiert werden soll.
Wenn ich ein schnödes application.minimize verwende, minimiert sich nur der Modale Dialog, nicht aber die Hauptform.

Habt ihr ein paar gute Ideen??

THX
direction4delphi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 84

WIN 95, WIN 98, WIN ME, WIN NT, WIN 2000, WIN XP, VISTA
D2 Prof, D4 Prof,D2005 Prof, Delphi4Php
BeitragVerfasst: Do 30.06.05 09:08 
user profile iconr4id3n hat folgendes geschrieben:
Hallo Community, ich habe ein interesanntes Problem:

Ich möchte meine Anwendung gerne minimieren, jedoch hier das Problem:

Mein Programm zeigt einen modalen Dialog an, von dem aus das KOMPLETTE Programm minimiert werden soll.
Wenn ich ein schnödes application.minimize verwende, minimiert sich nur der Modale Dialog, nicht aber die Hauptform.

Habt ihr ein paar gute Ideen??

THX


Hallo

ausblenden Delphi-Quelltext
1:
Hauptform.WindowState:=wsMinimized;					


mfg
MILLI
r4id3n Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 115

Win XP Home, Win XP Pro
D6 Prof, D7 Ent, K3 Ent
BeitragVerfasst: Do 30.06.05 14:42 
Nein, das funktioniert leider auch nicht! Villeicht sollte ich dazu erwähnen (ka. ob das nen unterschied macht), dass meine MainForm keinen Border hat ...
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Do 30.06.05 14:55 
Sieh dir mal SetWindowLong an, damit kannst du alle Parameter des Fensters setzen. Im PSDK stehen die Parameter.

Oder geht folgender Code:
ausblenden Delphi-Quelltext
1:
2:
  ShowWindow(Self.Handle, SW_HIDE);
  ShowWindow(Application.Handle, SW_HIDE);
r4id3n Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 115

Win XP Home, Win XP Pro
D6 Prof, D7 Ent, K3 Ent
BeitragVerfasst: Do 30.06.05 15:12 
Funktioniert auch leider beides nicht!
direction4delphi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 84

WIN 95, WIN 98, WIN ME, WIN NT, WIN 2000, WIN XP, VISTA
D2 Prof, D4 Prof,D2005 Prof, Delphi4Php
BeitragVerfasst: Do 30.06.05 15:16 
user profile iconr4id3n hat folgendes geschrieben:
Funktioniert auch leider beides nicht!


Beschreib mal genauer was du eiogentlich machen möchtest. Ist das nodale Fenster ein LoginForm oder so? Oder Solldas Main window nur nicht mehr sichtbar sein dann verschiebe es aus den Screen raus.

mfg
MILLI
r4id3n Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 115

Win XP Home, Win XP Pro
D6 Prof, D7 Ent, K3 Ent
BeitragVerfasst: Fr 01.07.05 10:24 
Für alle, die das gleiche Problem haben, hier die Lösung: www.zecos.com/delphi/components.html
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Di 05.07.05 09:43 
user profile iconr4id3n hat folgendes geschrieben:
Funktioniert auch leider beides nicht!

Na ja, aber fast so, ich dachte, du probierst mal etwas weiter...

Ich hab mal angesehen, was hinter deinem Link steckt, und dort wird es fast so gemacht:
ausblenden Delphi-Quelltext
1:
ShowWindow(Application.Handle, SW_SHOWMINNOACTIVE);					

Das ist das entscheidende, aber auswendig wusste ich natürlich nicht alle möglichen Werte, die man da angeben kann. Deshalb auch der Hinweis aufs PSDK...

Naja, hauptsache ist ja, dass es jetzt bei dir funktioniert... :wink:
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Di 05.07.05 10:12 
gehts so auch nicht ?
ausblenden Delphi-Quelltext
1:
  PostMessage(Form1.Handle, WM_COMMAND, SC_MINIMIZE, 0)					


von dem Link oben, das Programm MaxSpace ist ja genial, muss ich gleich mal testen, das gequetsche mit den Formularen immer ...
r4id3n Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 115

Win XP Home, Win XP Pro
D6 Prof, D7 Ent, K3 Ent
BeitragVerfasst: Di 05.07.05 10:38 
Nachdem das jetzt mit der Komponente geht, werd ich nicht weiter testen ;-)

Aber nochmal danke für eure hilfe!
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Di 05.07.05 13:01 
user profile iconF34r0fTh3D4rk hat folgendes geschrieben:
von dem Link oben, das Programm MaxSpace ist ja genial, muss ich gleich mal testen, das gequetsche mit den Formularen immer ...

Sowas hab ich auch schon geschrieben, ich schreibs gerade für D2005 um (Im Moment nur für D6 und D7), werds dann wahrscheinlich als Open Source veröffentlichen.
(Leider stürzt im Moment noch manchmal die IDE ab, wenn das geladen ist, auch deshalb will ich es veröffentlichen, damit da vielleicht mal jemand den Fehler findet.)

Dauert aber noch eine Weile, im Moment hab ich keine Zeit.