If you use
SystemParametersInfo(SPI_SCREENSAVERRUNNING, 1, @NoUse, 0);
The Task bar goes away and stays away until you
SystemParametersInfo(SPI_SCREENSAVERRUNNING, 0, @NoUse, 0);
This also disables system keys like Alt Tab, Ctrl-Alt-Delete, Ctrl-Esc...
Dave.
-----Original Message-----
From: Graham Mayes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 19, 2001 12:25 PM
To: Multiple recipients of list delphi
Subject: [DUG]: form1.click
I have a programme which through a menu starts other programmes.
It is important to hide the task bar.
This is no problem except with one programme which restores the task bar
upon returning to my menu programme, despite the lines below:
procedure TForm1.AppOnActivate(Sender: TObject);
begin
ShowWindow((FindWindowEx(0, 0, PChar('Shell_TrayWnd'), PChar(''))),
SW_HIDE);
form1.WindowState := wsMaximized;
form1.click;
end;
As soon as the user clicks, the taskbar disappears, but too late, they could
click the start button. I thought 'form1.click' would simulate a mouse
click. Apparently not so.
How can a simulate a mouse click?
Regards
Graham.
---------------------------------------------------------------------------
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/