RE: [DUG]: Hiding taskbar

2001-09-11 Thread David O'Brien

How about making your app behave as a screen saver? This disables and hides
the task bar.

var
  NoUse: Integer ;
begin
  SystemParametersInfo(SPI_SCREENSAVERRUNNING, 0, @NoUse, 0);
end ;

Dave.

-Original Message-
From: Graham Mayes [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 4:56 PM
To: Multiple recipients of list delphi
Subject: [DUG]: Hiding taskbar


I have a programme in which hiding the taskbar is crucial.
I use:
ShowWindow((FindWindowEx(0, 0, PChar('Shell_TrayWnd'), PChar(''))),
SW_HIDE);
The above line of code is in  AppOnActivate   andFormActivate.

My programme runs other programmes.
When returning from other progammes, all is well, except for one, which
displays an unwanted taskbar.

How can this be with the above code attached to both the above events? Any
ideas?

__
Graham Mayes
8 Franklyn Close
Wakefield
http://www.answersoft.co.nz

---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of unsubscribe delphi
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of unsubscribe delphi
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/



RE: [DUG]: Hiding taskbar

2001-09-09 Thread Patrick Dunford

I normally hide the taskbar without bothering with Windows calls, by making
my app full screen.

I think all you have to do is to set the BorderStyle on your main form to
bsNone or bsSingle, from memory.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Graham Mayes
 Sent: Monday, 10 September 2001 16:56
 To: Multiple recipients of list delphi
 Subject: [DUG]: Hiding taskbar


 I have a programme in which hiding the taskbar is crucial.
 I use:
 ShowWindow((FindWindowEx(0, 0, PChar('Shell_TrayWnd'), PChar(''))),
 SW_HIDE);
 The above line of code is in  AppOnActivate   andFormActivate.

 My programme runs other programmes.
 When returning from other progammes, all is well, except for one, which
 displays an unwanted taskbar.

 How can this be with the above code attached to both the above events? Any
 ideas?

 __
 Graham Mayes
 8 Franklyn Close
 Wakefield
 http://www.answersoft.co.nz

 --
 -
 New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
   Website: http://www.delphi.org.nz
 To UnSub, send email to: [EMAIL PROTECTED]
 with body of unsubscribe delphi
 Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/


---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of unsubscribe delphi
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/