The following is the same four paragraphs
Program However, three message structures are used:
Twmmousemove, twmmouse, tmessage
Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs;
// Brush var G: tgpgraphics; P: tgppen; begin G: = tgpgraphics. create (canvas. handle); P: = tgppen. create (aclred, 2); {parameter 1 color; parameter 2 is the pen width, and the pen width is optional. The default value is 1} G. drawellipse (p, 11,
Beginpath {path start} endpath {path end} strokepath {drawing path} fillpath {fill path} strokeandfillpath {draw and fill path} // graphic commands available in the path include:
Perform and sendmessage directly send messages to the form;
Postmessage puts a message into a message queue.
Because application. onmessage only receives messages in the queue,Therefore, the message sent by perform and sendmessage cannot be
Procedure:
1. Add a timagelist: imagelist1 and load some icons;
2. Add two tpopupmenu: popupmenu1 and popupmenu2, and add some menu items respectively;
3. Add a ttoolbar control: toolbar1. Right-click the control and choose new button from the
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