Solved

how can i do that my program will have full screen?

Posted on 1998-07-09
7
135 Views
Last Modified: 2010-04-04
i need a program that disable the alt+ctrl+del option
and hide the task bar
0
Comment
Question by:saar071697
  • 4
  • 2
7 Comments
 
LVL 4

Expert Comment

by:BoRiS
ID: 1357425
saar

the bestway I have found to do this is for your app to fake that it's running a screensaver

like this (will disable alt-tab and ctrl-alt-del)

   var
      Fake : integer;
   begin
     Fake := 0;
     {Disable ALT-TAB}
     SystemParametersInfo( SPI_SETFASTTASKSWITCH, 1, @Fake, 0);
     {Disable CTRL-ALT-DEL}
     SystemParametersInfo( SPI_SCREENSAVERRUNNING, 1, @Fake, 0);
   end.

then to hide your app from the taskbar use this...

ShowWindow(Application.handle, SW_HIDE); //to hide from taskbar
ShowWindow(Application.Handle SW_SHOW); //to show on taskbar

Later
BoRiS


0
 
LVL 2

Author Comment

by:saar071697
ID: 1357426
boris: thank you for the alt-ctrl-del and the alt-tab.
but about the task bar i need to hide THE task bar and not to hide from the taskbar.
and please say me where i need to put this text?
0
 
LVL 2

Author Comment

by:saar071697
ID: 1357427
boris: thank you for the alt-ctrl-del and the alt-tab.
but about the task bar i need to hide THE task bar and not to hide from the taskbar.
and please say me where i need to put this text?
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 2

Author Comment

by:saar071697
ID: 1357428
sorry about my english,
i am an isralian
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1357429
private
hTaskBar: HWND;
---------------------
Hello Saar. Don't worry about the langiage...There are many other people who don't speak English good, including me  :)   Here is an answer to your last question>>>
Enter this in the form's OnCreate Event Handler:
hTaskBar := FindWindow('Shell_TrayWnd', nil);//Finds the taskbar
---------------------
Enter this in the form's OnDestroy Event Handler:
ShowWindow(hTaskBar, SW_SHOW);//shows the taskbar
---------------------
Enter this in the event where you want to hide the taskbar:Example: in button's OnClick..Got IT?
ShowWindow(hTaskBar, SW_HIDE);//hides the taskbar
0
 
LVL 2

Author Comment

by:saar071697
ID: 1357430
Good Answer but please answer it after i will ask boris how can
i enable again the buttons?
0
 
LVL 10

Accepted Solution

by:
viktornet earned 100 total points
ID: 1357431
Hello saar,
Actually I got an answer for you. Here it is...
----------------------------
Add in pablic section
  var Dummy: integer;
------------------------------
Add in form's OnCreate()
SystemParametersInfo(97, Word(True), @Dummy, 0);//Disables CTRL+ALT+DEL&ALT+TAB                                                                                             //& CTRL+ESC
--------------------------------
Add in Form's OnDestroy()
SystemParametersInfo(97, Word(False), @Dummy, 0);//Enables CTRL+ALT+DEL&ALT+TAB                                                                                               //& CTRL+ESC

That's all you need, and the answer for the TaskBar you saw before... C'Ya

Viktor Ivanov

0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question