Autor Beitrag
Halber
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55



BeitragVerfasst: Do 13.10.05 10:34 
Hall alle zusammen!

Der Titel sagt/fragt alles!

Danke für eure Hilfe 8)
Halber


Moderiert von user profile iconraziel: Topic aus Sonstiges verschoben am Do 13.10.2005 um 10:40
Martin1966
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1068

Win 2000, Win XP
Delphi 7, Delphi 2005
BeitragVerfasst: Do 13.10.05 10:37 
Wie wäre es mit suchen? Suche in: Delphi-Library TRAYICON
Halber Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55



BeitragVerfasst: Do 13.10.05 14:24 
merh oder weniger klappts damit, aber wie kann ich anstelle von so nem dämlichen windosicon das von form1 nehmen? wenn ich schreib icon:=form1.icon; klappts nich dann istin der leiste da kein icon zu sehn sonder nur ein lehrer platz.
und ich weiss ich nierv aber ich muss noch was wissn:
wie mach ich es jetz dass sich das prog beim minimieren nur in das systemicon minimiert und dieser dämliche balken nich mehr da is?
Martin1966
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1068

Win 2000, Win XP
Delphi 7, Delphi 2005
BeitragVerfasst: Do 13.10.05 14:53 
user profile iconHalber hat folgendes geschrieben:
wenn ich schreib icon:=form1.icon; klappts nich dann istin der leiste da kein icon zu sehn sonder nur ein lehrer platz.

Könntest du etwas mehr Code posten? Mit diesem Einzeler den du gepostet hast kann ich dir nicht wirklich helfen.

Außerdem wäre es schön wenn Du vor dem Absenden deines Beitrags diesen noch mal durchlesen würdest um eventl. Tippfehler und fehlende Buchstaben zu korrigieren. ;-)

Lg Martin
Halber Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55



BeitragVerfasst: Do 13.10.05 15:16 
Hier der gefragt code:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
procedure TForm_start.FormCreate(Sender: TObject);
begin
  // NotifyIconData-Struktur mit Werten füllen
  with fIconData do
    begin
      cbSize := SizeOf (TNOTIFYICONDATA);
      Wnd := Handle;
      uID := 1;
      uFlags := NIF_MESSAGE + NIF_ICON + NIF_TIP;
      Icon := form_start.icon;
      szTip := 'Mp3 Mediacenter';
      uCallBackMessage := 2;
    end;

  // Icon in die TNA hinzufügen
  If not Shell_NotifyIcon (NIM_ADD, @fIconData) then
    { Fehler! };
end;


was muss ich statt der zeile Icon := form_start.icon; schreiben?
und wie mach ich das, dass das programm nur in das systemicon minimiert?
Martin1966
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1068

Win 2000, Win XP
Delphi 7, Delphi 2005
BeitragVerfasst: Do 13.10.05 15:35 
user profile iconHalber hat folgendes geschrieben:
was muss ich statt der zeile Icon := form_start.icon; schreiben?

ausblenden Delphi-Quelltext
1:
Icon := form_start.icon.handle;					
Halber Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55



BeitragVerfasst: Do 13.10.05 15:59 
sry aber die zeile tut nich
Halber Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55



BeitragVerfasst: Do 13.10.05 16:48 
hab rasugefunden wie die zeile richtig heissen muss:
ausblenden Delphi-Quelltext
1:
HIcon := form_start.icon.handle					

aber wie mach ich es noch, dass der balkan in der taskleiste im minimierten zustand durch das systemicon ersetzt wird?
Martin1966
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1068

Win 2000, Win XP
Delphi 7, Delphi 2005
BeitragVerfasst: Fr 14.10.05 12:25 
ausblenden Delphi-Quelltext
1:
2:
3:
Application.MainForm.Visible := False;
if IsWindowVisible (Application.Handle) then
  ShowWindow (Application.Handle, SW_HIDE);


ausblenden Delphi-Quelltext
1:
2:
3:
Application.MainForm.Visible := True;
if not IsWindowVisible (Application.Handle) then
  ShowWindow (Application.Handle, SW_SHOW);
Halber Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55



BeitragVerfasst: Fr 14.10.05 14:40 
sorry, für die dumme frage, aber wo muss mder pfad hin?
Martin1966
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1068

Win 2000, Win XP
Delphi 7, Delphi 2005
BeitragVerfasst: Fr 14.10.05 16:26 
Welcher Pfad?
Halber Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55



BeitragVerfasst: Fr 14.10.05 16:38 
problem hat sich erledigt
Ivo@CoMRoK
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 258

Win XP
D3 Prof., D7 Pe.
BeitragVerfasst: Di 13.12.05 19:43 
Ich hab das jetzt so:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
  with fIconData do
    begin
      cbSize := SizeOf (TNOTIFYICONDATA);
      Wnd := Handle;
      uID := 1;
      uFlags := NIF_ICON + NIF_TIP;
      hIcon := form1.icon.handle;//form1.icon.handle weil das mim form_start.icon.handle net funzt
      szTip := 'My Icon';
    end;

Nur: Jetzt ist zwar ein Icon im Tray nur isses net sichtbar(transparent).
mfg Ivo