GDI + Learning Record (30): Metafile File Operations

// Display the Metafile file var G: tgpgraphics; IMG: tgpimage; begin G: = tgpgraphics. create (canvas. handle); IMG: = tgpimage. create ('C: \ temp \ x. emf'); {the file must exist} G. drawimage (IMG, 11, 11); IMG. free; G. free; end; // Draw the

How to obtain the address of the overload function-reply to the "flq_00000" question

Problem Source: http://www.cnblogs.com/del/archive/2008/07/30/1039045.html#1272783 In the compiler's opinion, the overloaded functions are basically different functions, of course there will be different function addresses; the addresses we

Learn message (2): Send the wm_mousemove message

In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls, extctrls; Type tform1 = Class (tform) Panel1: tpanel; button1: tbutton; button2:

Winapi: createellipticrgn, createellipticrgnindirect-create an elliptical Region

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 *.

Read Unicode text files using memo-Reply to "ahgan"

Problem Source: http://www.cnblogs.com/del/archive/2008/05/29/1005631.html#1212654 First, this problem may not exist when it reaches Delphi 2008, because tstrings certainly supports Unicode at that time; the current version is 2007.

Winapi: windowfrompoint-get the handle of the window where the specified vertex is located

// Declaration: windowfrompoint (point: tpoint): hwnd; // Example: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls, extctrls; Type tform1 = Class (tform) button1: tbutton;

Learn more about GDI + [11]: drawcurve-draw a curve

In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls, comctrls, extctrls; Type tform1 = Class (tform) button1: tbutton; trackbar1:

Use tstringlist to simulate the function of converting a string to a variable-Reply to "flq_00000" and "foreign guests"

Problem Source: http://www.cnblogs.com/del/archive/2008/09/03/989467.html#1306651 Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs; Type tform1 = Class (tform) Procedure formcreate

Learn more about GDI + [17]: fillrectangle, colorreftoargb, tgpsolidbrush, and color transparency

In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, percentages, stdctrls, extctrls; Type tform1 = Class (tform) colorlistbox1: tcolorlistbox;

GDI + Learning Record (19): Path-Path

// Draw and fill the path var G: tgpgraphics; Path: tgpgraphicspath; P: tgppen; SB: tgpsolidbrush; begin G: = tgpgraphics. create (canvas. handle); P: = tgppen. create (makecolor (128,255,), 4); SB: = tgpsolidbrush. create (makecolor (128,255,255, 0)

Use GDI to operate on the EMF file [6]: getenhmetafileheader-get the EMF header file

// Enhance the header file structure of the Metafile tenhmetaheader: tagenhmetaheader = packed record itype: DWORD; {record type} nsize: DWORD; {structure size} rclbounds: trect; {external rectangle (in pixels)} rclframe: trect; {image rectangle (in

Difference between dupestring and stringofchar-Reply to "e @ Changkong"

Problem Source: http://www.cnblogs.com/del/archive/2008/06/04/1101970.html#1217512 Stringofchar is a function that repeats "character" into "string; Dupestring is a function that repeats "string" into "New String; Stringofchar comes from

Learn message (10): wm_cancelmode message Test

In the start mode window, the current window will receive a message for wm_cancelmode. No parameter is set for the message to be changed. In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils,

Learn more about GDI + [5]: drawarc-draw an arc

In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls, spin, extctrls; Type tform1 = Class (tform) Panel1: tpanel; label1: tlabel; label2

Function for sorting memo

In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) memo1: tmemo; button1: tbutton; procedure

Winapi: rectinregion-determines whether the rectangle is in the region

In this example: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) button1: tbutton; button2: tbutton; procedure alert (Sender: tobject);

Learning message (4): responds to messages through application. onmessage or tapplicationevents

Use application. onmessage to respond to a message: Unit unit1; interfaceuses windows, messages, extensions, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) memo1: tmemo; Procedure formcreate

Create a shortcut function: createshortcut-very practical and convenient

Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) button1: tbutton; button2: tbutton; button3: tbutton; button4: tbutton; Procedure submit (Sender:

Learn more about GDI + [12]: preparation-rectangular hit

In this example: Code file: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs; Type tform1 = Class (tform) Procedure formmousedown (Sender: tobject; button: tmousebutton; shift:

Learn more about GDI + [20]: tgptexturebrush and twrapmode

Tgptexturebrush. Create (image: tgpimage; {image used for image painting} wrapmode: twrapmode = wrapmodetile {tile style, which is an optional value, as shown in the table below }); In this example: Code file: unit Unit1;interfaceuses Windows,

Total Pages: 64722 1 .... 27092 27093 27094 27095 27096 .... 64722 Go to: GO

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.