Autor Beitrag
Florian.K
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 130

Win Xp Prof. & SP 2
Delphi 10 Lite
BeitragVerfasst: Mo 22.05.06 11:34 
Hi Community!
Mit welchem Command kann ich die Taskleiste
verschwinden und erscheinen lassen? Und ist dies überhaupt möglich?
Am besten mit 2 Buttons
Show
Hide
Danke im Voraus!
Florian


Moderiert von user profile iconGausi: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Di 23.05.2006 um 15:26
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Mo 22.05.06 12:13 
Ein Suchen fördert folgendes zu Tage Suche in der Delphi-PRAXiS TASKBAR VERSTECKEN
leoschabel
Hält's aus hier
Beiträge: 10

WIN 2000
Delphi 2007 Prof.
BeitragVerfasst: Di 06.06.06 13:08 
Titel: Geht einfach!
In dem Programm EasyDelphiHelper (hier runterladen) gibt es einen Hinweis dazu:
Das ist nicht der einzige. Einfach mal ein bisschen umschauen... :idea:

_______________________________________________________________________________________________________________________

Taskbar verstecken/zeigen
Shell_TrayWnd, SW_Show, SW_Hide


--------------------------------------------------------------------------------

In der Taskbar werden normalerweise die Buttons für die laufenden Anwendungen angezeigt. Auch das Startmenü befindet sich dort.

Folgende Procedure setzt den Sichtbarkeits-Zustand der Taskbar. Übergibt man ihr als Parameter True, wird sie angezeigt, ansonsten versteckt.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
procedure ShowTaskBar(AShow: Boolean);
const
  cmdShow: array[Boolean] of Integer = (SW_HIDE, SW_SHOW);
var
  Handle: THandle;
begin
  Handle := FindWindow('Shell_TrayWnd', nil);
  if Handle <> 0 then
    ShowWindow(Handle, cmdShow[AShow]);
end;

Hat der Anwender die Option 'Automatisch im Hintergrund' aktiviert gehabt, wird sie beim Anzeiegn auch wieder aktiviert sein.



--------------------------------------------------------------------------------
Letzte Aktualisierung: 03.02.2005

Moderiert von user profile iconjasocul: Delphi-Tags hinzugefügt
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: Di 06.06.06 13:16 
Man kann auch WindowState auf wsMaximized und BorderStyle auf bsNone setzen. Dann hat es den gleichen Effekt.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot