Tgplineargradientbrush. create (rect: tgprect; {linear gradient boundary} color1, color2: tgpcolor; {linear gradient start color and end color} mode: tlineargradientmode {Gradient Direction, see the following table }); tgplineargradientbrush. create
Lstrcmp is case sensitive; lstrcmpi is case insensitive. return values:-1, 0, and 1, where 0 indicates the same.
Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type
In this example:
Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs; Type tform1 = Class (tform) Procedure formpaint (Sender: tobject); end; vaR form1: tform1; implementation {$ R *.
In this example, the color of the cursor is modified ,:
Code File:
Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls, extctrls; Type tform1 = Class (tform)
The lparam parameter of the wm_syscommand message is the mouse position, the low is X, and the high is Y.
The following three programs use different types of message parameters. It is more convenient to use twmsyscommand and more orthodox to use
You can customize a line cap using GDI +. In this example, the starting line cap is a small rectangle and the ending line cap is a small triangle.
In this example:
Code file:
Unit unit1; interfaceuses windows, messages, sysutils, variants,
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