Autor Beitrag
volvox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 112

WIN XP
Delphi 7 Personal
BeitragVerfasst: Do 06.07.06 12:01 
Ein Ereignis der FOrm ist ja z.B. "OnClose". Gibt es auch die Möglchkeit etwas wie OnMinimize oder so was in der Art zu verwenden, damit das Programm reagiert wenn ich das Fenster klein machen will.
crowley
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 406

Win XP, Win Vista, Mandriva, Ubuntu
Delphi 4-8, Delphi 2006, Delphi 2007
BeitragVerfasst: Do 06.07.06 12:17 
ja... gibt es... soll das nur bei dem Form gemacht werden oder für die Anwendung?

Am einfachsten ist, du verwendest die TApplicationEvents- Komponente... die bietet dir für alle möglichen Fälle was an ;)
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Do 06.07.06 12:17 
Moin!

Das ist ein Application-Event, das kriegt nicht die Form.

Wenn du das nutzen willst, dann mußt du ein ApplicationEvents-Objekt auf die Form legen (Reiter "Zusätzlich"), da gibts dann das Ereignis im Inspector.

cu
Narses

//EDIT: zu langsam... :(

_________________
There are 10 types of people - those who understand binary and those who don´t.
volvox Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 112

WIN XP
Delphi 7 Personal
BeitragVerfasst: Do 06.07.06 17:17 
Danke!
Green
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 283

Windows XP Home
Delphi 6 Enterprise
BeitragVerfasst: Mo 31.07.06 14:10 
Und was is mit Unterfenstern? Frames und der gleichen? oder Fenster die keine Hauptfenster sind?
n-regen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 202
Erhaltene Danke: 2



BeitragVerfasst: Mo 31.07.06 14:15 
Oder für´s ganze Programm:
ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs;

type
  TForm1 = class(TForm)
    procedure AppMinimize(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.AppMinimize(Sender: TObject);
begin
 //irgendwas machen
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
 application.OnMinimize := AppMinimize
end;

end.