Solved

How can I make my form streach over all the screen?

Posted on 2004-03-25
12
171 Views
Last Modified: 2010-04-05
Hi guys....
How can I make my form streach over all the screen?
also over taskbar like games .

thanks
0
Comment
Question by:peruzzi
12 Comments
 
LVL 11

Accepted Solution

by:
shaneholmes earned 20 total points
ID: 10677574
set the form windowstate property  to wsmaximized & BorderStyle to "bsNone"


procedure TForm1.FormCreate(Sender: TObject);
var
 TaskBar: HWND;
Begin
 TaskBar := FindWindow('Shell_TrayWnd', nil);
ShowWindow(TaskBar, SW_HIDE);
end;

procedure TForm1.FormDestroy(Sender: TObject);
var
 TaskBar: HWND;
Begin
 TaskBar := FindWindow('Shell_TrayWnd', nil);ShowWindow(TaskBar, SW_SHOW);
end;
end.

Shane
0
 
LVL 17

Expert Comment

by:mokule
ID: 10677768
form1.height := screen.height;
form1.width := screen.width;
0
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10677839
peruzzi,

I would recommend you  place a temporary button on the form with

Close;

in the OnClick event,

then you can remove he button when your done developing your application
or when you have added an alternative method of exiting the application.

Shane
0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 17

Expert Comment

by:mokule
ID: 10677935
peruzzi
1. If You hide the taskbar like Shane advice there will be no taskbar when You switch from your application to another using Alt+Tab.
2. It is also possible to close your application by Alt+F4
0
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10677976
WHen you clsoe the form, you get the task bar back, see my code above

What are you trying to do here mokule?

Shane
0
 
LVL 17

Expert Comment

by:mokule
ID: 10678121
I didn't talk about closing application, but switching to another.
Am I not right?
Excuse me Shane but I don't understand Your question.
0
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10678163
Well, if i understand you correctly, you say that with my solution, you can't Alt-Tab to other apps! - and I say you can!

Shane
0
 
LVL 17

Expert Comment

by:mokule
ID: 10678206
No You don't understand me.
I've just said that WHEN You switch the task bar is hidden. Nothing more.
0
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10678284
Right, thats correct.....

Shane
0
 
LVL 5

Expert Comment

by:Hypoviax
ID: 10683478
Very easy. You don't need to do all this other fancy stuff just set the properties of the form:

- Windowstate - wsmaximised
- BorderStyle - bsnone

And if you want to have it ontop of all programs set

-FormStyle - Fsstayontop

. To bring the program to the top call

formx.bringtofront

Regards,

Hypoviax
0
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10683506
Whats makes yours more simple then mokule's

form1.height := screen.height;
form1.width := screen.width;

Shane
0
 

Author Comment

by:peruzzi
ID: 10685759
Hi Guys
thanks for you

peruzzi
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi TcxGrid group footer summary 3 275
Best Firemonkey component pack 1 105
Downloading email attachments 2 74
scroll down TListBox component in Delphi 1 11
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

803 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