Autor Beitrag
moloch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Fr 08.10.04 11:14 
hallo leute,
ich bin in der lage mit diesem code meine anwendung als ein kleines symbol neben der systemzeit anzuzeigen. in der taskleiste ist es nicht zu sehen.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
  bFormFertig := (False);
  aNID.cbSize := (SizeOf(TNotifyIconData));
  aNID.Wnd := (Handle);
  aNID.uID := (cTaskBarId);
  aNID.uFlags := (NIF_MESSAGE or NIF_ICON or NIF_TIP);
  aNID.uCallBackMessage := (PM_TaskBar);
  aNID.hIcon := (Application.Icon.Handle);
  aNID.szTip := ('');
  Shell_NotifyIcon(NIM_ADD, @aNID);
  ShowWindow(Application.Handle, SW_Hide);
  Application.OnMinimize := AbInTaskBarSofort;


gibt es einen noch einfacheren weg?

mfg
moloch

Moderiert von user profile iconChristian S.: Code- durch Delphi-Tags ersetzt.
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Fr 08.10.04 11:17 
Zitat:
als ein kleines symbol neben der systemzeit anzuzeigen


= TNA :wink:


Zitat:
gibt es einen noch einfacheren weg?


Nein. Nur noch komplizierter wenn's du richtig gut machen möchtest.
moloch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Fr 08.10.04 13:06 
hey,

also so ein symbol nennt man tna ja?
was heisst das ausgesprochen?

mfg
moloch
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Fr 08.10.04 13:17 
Hallo, Moloch!

Bitte nutze für Deinen Delphi-Code die Delphi- anstatt der Code-Tags. Dadurch wird der Sourcecode mit Syntax-Highlighting angezeigt!

Danke
Christian :-)

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Fr 08.10.04 13:21 
moloch hat folgendes geschrieben:
gibt es einen noch einfacheren weg?

Was? Noch einfacher? ;-)
moloch hat folgendes geschrieben:
also so ein symbol nennt man tna ja?
was heisst das ausgesprochen?

Taskbar Notification Area

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
moloch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Mo 11.10.04 10:44 
ahh ok
danke
heinze
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 112

XP
D4 Prof
BeitragVerfasst: Mo 11.10.04 13:26 
Hab schon mal ne Componente gefunden die sowas macht aber wie die hies müst ich mal nachschauen

_________________
Für Fehler haftet die Tastatur bzw Für Gramatik ist meine legasthenie zu verklagen sonstige Verbesserungsvorschläge meiner Text bitte per pn an mich
moloch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Di 12.10.04 13:11 
das wär nett

mfg
moloch