Autor Beitrag
Regan
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: So 02.07.06 18:17 
Hallo,
ich möchte mein Programm vor Alt+Tab verstecken. Geht das überhaupt? und wenn ja, wie?
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: So 02.07.06 18:26 
Mit application.ShowMainForm:=false vielleicht.

Moderiert von user profile iconGausi: Delphi-Tags hinzugefügt

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: So 02.07.06 18:57 
macht wenig sinn, oder ?

er will ja nicht, dass mein sein formular nicht sieht, sondern, dass es nicht unter den tabs ist.
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: So 02.07.06 19:16 
Hat er nicht gesagt :zwinker:

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Regan Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: Mo 03.07.06 15:27 
user profile iconMarco D. hat folgendes geschrieben:
Hat er nicht gesagt :zwinker:

möchte er aber. Ich habe außerdem festgestellt, dass dort immer 'form1' steht. Kann man dieses Problem vielleicht mit
Application.Title:='bla, bla' lösen? :|
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mo 03.07.06 20:55 
In den Projektoptionen Anwendungsnamen vergeben oder so wie du per Quelltext.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Regan Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: Di 04.07.06 12:54 
hmm.. OK. Aber wie verstecke ich das Programm nun vor Alt + Tab?
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Di 04.07.06 13:17 
hook :?:


Zuletzt bearbeitet von F34r0fTh3D4rk am Di 04.07.06 13:18, insgesamt 1-mal bearbeitet
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 04.07.06 13:18 
Erkläre doch mal den Sinn des Ganzen. Vielleicht ist dein Ansatz falsch.
Soll das Programm trotzdem in der Task-Leiste erscheinen?
Regan Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: Di 04.07.06 19:15 
ja und nein. Es ist folgendes: Ich möchte mein Programm nur als Nebendienst laufen lassen(Zumindest für eine bestimmte Zeit). Das Programm ist dabei nur im Tray sichtbar(Das geht ja super mit TCoolIcon). Da ich häufig Alt + Tab benutze, möchte ich nicht immer erst durch meine ganzen(zurzeit sind es zwei) Programme durchdrücken, bis ich dort bin, wo ich hin will(z.B. Word). Darum möchte ich diese aus Alt + Tab entfernen.
@user profile iconF34r0fTh3D4rk: hooks?

||Edit: Doppelpunkt und Leerzeichen nach F34r0fTh3D4rk eingefügt
ErazerZ
Hält's aus hier
Beiträge: 2

WinXP
Delphi 6
BeitragVerfasst: Di 04.07.06 21:20 
was der Marco D. bereits sagte
ausblenden Delphi-Quelltext
1:
  Application.ShowMainForm := False;					

und das Program ist schon vor Alt + Tab versteckt, jedoch nicht vor dem Taskmanager's Prozessliste. Und falls du mal das Programm anzeigen möchtest einfach das ShowMainForm wieder auf True setzen und "Form1.Show" aufrufen.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 05.07.06 06:49 
Ich habe hier auch ein Programm, dass als Tray-Icon dargestellt wird. Allerdings erst, wenn ich es minimiere. Es erscheint nicht bei Alt+Tab. :gruebel:
Regan Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: Sa 08.07.06 16:08 
user profile iconRegan hat folgendes geschrieben:
user profile iconMarco D. hat folgendes geschrieben:
Hat er nicht gesagt :zwinker:

möchte er aber. Ich habe außerdem festgestellt, dass dort immer 'form1' steht. Kann man dieses Problem vielleicht mit
Application.Title:='bla, bla' lösen? :|


Das kann man lösen, indem man der Hauptform einen Namen gibt. Mein Problem war nur, dass meine Hauptform keinen Namen brauchte und deshalb 'Form1' noch dastand.

user profile iconErazerZ hat folgendes geschrieben:
was der Marco D. bereits sagte
ausblenden Delphi-Quelltext
1:
  Application.ShowMainForm := False;					

und das Program ist schon vor Alt + Tab versteckt, jedoch nicht vor dem Taskmanager's Prozessliste. Und falls du mal das Programm anzeigen möchtest einfach das ShowMainForm wieder auf True setzen und "Form1.Show" aufrufen.


Manchmal funktioniert es und manchmal nicht. Ich kann mir das nicht erklären. Genauso mit dem Popup-Menu vom TCoolIcon. Manchmal geht er und manchmal nicht...
Drahcir
Hält's aus hier
Beiträge: 5

Win XP Home
C++ (Borland C++ - Builder 6.0), Delphi 2005 Prof.
BeitragVerfasst: Di 11.07.06 16:03 
Probier's mal mit ShowWindow(Application.Handle, SW_HIDE);

Damit bleibt das Formular sichtbar, das der Taskleisten-Button verschwindet aber, genauso wie der intrag bei Alt+Tab!
Regan Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: Mi 12.07.06 12:49 
Funktioniert bei mir nicht. Außerdem blende ich das Symbol ja schon mit dem TCoolIcon aus der Taskleiste aus.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 12.07.06 13:20 
Ich hatte weiter oben geschrieben, dass ich das Problem nicht habe. Liegt daran, dass ich die entsprechende Jedi-Komponente genommen habe. Heißt iirc TJvCoolIcon. Da kann man das über eine Property einstellen.
Folge-Beitrag von Alias5000 beachten!! :!:

(Danke für die Korrektur)


Zuletzt bearbeitet von jasocul am Mi 12.07.06 13:43, insgesamt 1-mal bearbeitet
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Mi 12.07.06 13:36 
Du meinst TJvTrayIcon :wink:

_________________
Programmers never die, they just GOSUB without RETURN
Andy090778
Hält's aus hier
Beiträge: 10



BeitragVerfasst: So 10.09.06 23:59 
FormX.Hide geht auch...

Lohnt sich aber nur, wenn man zuvor ein TaskIcon gestartet hat.

Guck mal hier:
www.delphi-forum.de/....php?p=386490#386490
Regan Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: Mi 11.10.06 11:21 
ich habe jetzt mir die Jedikomponenten heruntergeladen und installiert. Und jetzt wird es auch nicht mehr dort angezeigt. Danke noch mal an alle.