Avatar of peruzzi
peruzzi

asked on 

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

Hi guys....
How can I make my form streach over all the screen?
also over taskbar like games .

thanks
Delphi

Avatar of undefined
Last Comment
peruzzi
ASKER CERTIFIED SOLUTION
Avatar of shaneholmes
shaneholmes

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of mokule
mokule
Flag of Poland image

form1.height := screen.height;
form1.width := screen.width;
Avatar of shaneholmes
shaneholmes

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
Avatar of mokule
mokule
Flag of Poland image

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
Avatar of shaneholmes
shaneholmes

WHen you clsoe the form, you get the task bar back, see my code above

What are you trying to do here mokule?

Shane
Avatar of mokule
mokule
Flag of Poland image

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.
Avatar of shaneholmes
shaneholmes

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
Avatar of mokule
mokule
Flag of Poland image

No You don't understand me.
I've just said that WHEN You switch the task bar is hidden. Nothing more.
Avatar of shaneholmes
shaneholmes

Right, thats correct.....

Shane
Avatar of Hypoviax
Hypoviax
Flag of Australia image

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
Avatar of shaneholmes
shaneholmes

Whats makes yours more simple then mokule's

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

Shane
Avatar of peruzzi
peruzzi

ASKER

Hi Guys
thanks for you

peruzzi
Delphi
Delphi

Delphi is the most powerful Object Pascal IDE and component library for cross-platform Native App Development with flexible Cloud services and broad IoT connectivity. It provides powerful VCL controls for Windows 10 and enables FMX development for Windows, Mac and Mobile. Delphi is your choice for ultrafast Enterprise Strong Development™. Look for increased memory for large projects, extended multi-monitor support, improved Object Inspector and much more. Delphi is 5x faster for development and deployment across multiple desktop, mobile, cloud and database platforms including 32-bit and 64-bit Windows 10.

60K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo