Registriert seit: 5. Mai 2008
Ort: Oberschwaben
1.275 Beiträge
Delphi 11 Alexandria
|
AW: Desktop anzeigen -> Fenster lässt sich nicht mehr schließen
25. Aug 2014, 07:24
Kann ich gerne machen, sind ja eigentlich nur 2 Zeilen Code
Delphi-Quellcode:
program Project10;
uses
Forms,
Unit9 in 'Unit9.pas' {Form9},
Unit10 in 'Unit10.pas' {Form10};
{$R *.res}
begin
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.CreateForm(TForm9, Form9);
Application.CreateForm(TForm10, Form10);
Application.Run;
end.
Delphi-Quellcode:
unit Unit9;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, unit10, ExtCtrls;
type
TForm9 = class(TForm)
Button1: TButton;
Timer1: TTimer;
procedure Button1Click(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form9: TForm9;
implementation
{$R *.dfm}
procedure TForm9.Button1Click(Sender: TObject);
begin
Form10.show;
end;
procedure TForm9.Timer1Timer(Sender: TObject);
begin
Form10.hide;
end;
end.
Delphi-Quellcode:
object Form9: TForm9
Left = 0
Top = 0
Caption = 'Form9'
ClientHeight = 337
ClientWidth = 635
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
OldCreateOrder = False
PixelsPerInch = 96
TextHeight = 13
object Button1: TButton
Left = 224
Top = 158
Width = 75
Height = 25
Caption = 'Button1'
TabOrder = 0
OnClick = Button1Click
end
object Timer1: TTimer
Interval = 10000
OnTimer = Timer1Timer
Left = 280
Top = 54
end
end
Hinter dir gehts abwärts und vor dir steil bergauf ! (Wolfgang Ambros)
Geändert von baumina (25. Aug 2014 um 07:27 Uhr)
|
|
Zitat
|