Danke dir... Ich habe nun nur noch die Komponente TTrayIcon verwendet die ich ja bei D2007 standartmäßig an board habe
Delphi-Quellcode:
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Menus, ExtCtrls;
type
TFrmMain = class(TForm)
TrayIcon: TTrayIcon;
PopupMenu: TPopupMenu;
Open: TMenuItem;
procedure TrayIconClick(Sender: TObject);
private
procedure WMSysCommand(var Message: TWMSysCommand); message WM_SysCommand;
public
{ Public-Deklarationen }
end;
var
FrmMain: TFrmMain;
implementation
{$R *.dfm}
procedure TFrmMain.WMSysCommand(var Message: TWMSysCommand);
begin
if Message.CmdType and $FFF0 = SC_MINIMIZE then begin
TrayIcon.Visible := True;
Self.Hide;
end
else inherited;
end;
procedure TFrmMain.TrayIconClick(Sender: TObject);
begin
Self.Visible := True;
TrayIcon.Visible := False;
end;
Danke Vielmals
Gruß, Real-TTX