Delphi7 Implementing a Form Full screen method

Source: Internet
Author: User


Set the Align property of the form to full screen to Alclient, this method is the quickest. Of course for me, I did not know this, so I walked a long way, and so on later in the implementation of the form is forbidden to move the time
Just thought of here, Khan. Note: This full-screen mode does not block the system taskbar .... You can also prevent the form from moving,

Method Two:

Control with code.
In the form creation event,
The form can also be moved after this method is run.
Affect aesthetics. The code that prevents the form from moving should be added) to write

Var

Traywnd:

HWnd;

//

Task bar Handle

Rec:trect;

Begin

Traywnd: = FindWindow (' Shell_traywnd ', nil);//

Get the taskbar handle

GetWindowRect (Traywnd, REC);

//

Get taskbar size

Mainfm. Left: = 0;

Mainfm. top:=0;

Mainfm. Width: =screen. Width

Mainfm. Height: =screen. Height-(rec. Bottom-rec. TOP)

End
This also realizes the full screen without blocking the taskbar. Method Three: (Full screen to block the taskbar)
Set the form WindowState to Wsmaxinized, Khan.

Delphi7 Implementing a Form Full screen method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.