Learn more about GDI + [1]: Install the file header

If you use Versions later than Delphi 2009, we recommend that you use: Http://www.cnblogs.com/del/archive/2009/12/11/1621790.html. The following figure shows how to use 2007. GDI + is a function library in windows. It comes from

Learn more about GDI + [41]: text output-control the number of output characters

In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs; Type tform1 = Class (tform) Procedure formpaint (Sender: tobject ); procedure formclick

Delphix (43) of Delphi and DirectX: tdib. doinvert;

In this example: CodeFile: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, Dib, stdctrls; Type tform1 = Class (tform) dxpaintbox1: bytes; button1: tbutton; button2: tbutton;

Learning to use resource files [9]-wave Resources

// RC file: sound1 wave "soundfile1.wav" sound2 wave "soundfile2.wav" //Code: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) button1: tbutton;

Function for converting a string to utf8 Encoding

This conversion is generally used for webpage addresses. I don't know if Delphi has a ready-made function. // Function: function toutf8encode (STR: string): string; var B: byte; begin for B in bytesof (utf8encode (STR) do result: = format ('% S

Wave file operations (1): Basic knowledge about wave files and file formats

I recently prepared to learn directsound, directmusic, and DirectShow, But I encountered many problems with wave files as soon as I got started. I had to go back and learn wave files. Basic knowledge of wave files We often see this

Gdiplus [14]: blend of igplineargradientbrush

The igplineargradientbrush. Blend attribute corresponds to an igpblend object; The two parameters in tgpblend. Create (factors, positions); are single-type arrays,Factors color intensity factor, positions is the ratio of location offset. For

Tclientdataset [25]: Automatically increasing fields (ftautoinc) and default values

Auto-increment field: // CreateCubeMethod 1: Begin with clientdataset1 do begin fielddefs. add ('id', ftautoinc); fielddefs. add ('name', ftstring, 11); createdataset; end; // Method 2: Begin with tautoincfield. create (Self) Do begin fieldname:

Convenient message sending functions such as sendtextmessage

It was suddenly found that the message unit finally provided several convenient message sending functions: Sendtextmessage, sendstructmessage, sendgetstructmessage, and sendgetintmessage Although the implementation of functions is very simple,

Winapi: extracticon-Get icons in EXE, DLL, or ICO files

// Declaration: extracticon (hinst: hinst; {call the function's Program Instance} lpszexefilename: pchar; {file path; file may be *. EXE ,*. DLL ,*. ICO} niconindex: uint {icon index}): hicon; {return icon handle; returns the first icon handle when

Learn more about GDI + [31]: tgppen-set the endpoint connection method-setlinejoin

In this example: Code File: Unit unit1; interfaceuses windows, messages, extensions, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) listbox1: tlistbox; Procedure formcreate (Sender:

Conversion of Chinese characters and multi-byte encoding-Reply to "unknown"

Problem Source: http://www.cnblogs.com/del/archive/2008/11/22/1284923.html#1378410 Delphi 2009 uses multi-byte encoding (MBCS) by default. Delphi indicates tencoding. default. The following is an example of conversion between multi-byte

Multi-thread programming (16)-waitabletimer for multi-thread synchronization (waiting for timer objects) [continued 2]

apc

Drinking for one day, reinstalling the system for one day, and failing to blog for two days; continue learning... Ever wondered? Waitabletimer is in "timed wait". In the preceding example, the waitforsingleobject wait function "is also waiting",

Learn how to use resource files in [11]-DLL

In this example, a BMP image is embedded into the DLL as a source file, and then called. Step 1: Create a DLL project ,: Save the settings and use the default names here. Step 2: Create a source file ,: The Edit content is

Delphix (25) of Delphi and DirectX: tdib. Blur ();

On the component panel of delphix, the second is tdxdib; Tdxdib. DiB is the unique attribute of tdxdib (others are inherent in tcomponent ); The tdxdib. Dib attribute is a tdib object; Tdib and tbitmap both inherit from tgraphic directly.

Learn more about GDI + [4]: drawellipse-draw an ellipse

In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs; Type tform1 = Class (tform) Procedure formpaint (Sender: tobject ); procedure formcreate

Winapi character and string function (2): charlowerbuff-converts a specified number of characters in the buffer to lowercase.

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:

Delphix (7) of Delphi and DirectX: the Final Solution for loading images to tdximagelist

In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, dxdraws, stdctrls; Type tform1 = Class (tform) dxdraw1: tdxdraw; Metadata: tdximagelist;

Save the form client image to a file or clipboard

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

Gdiplus [39]: igpgraphicspath (6)-path auxiliary tool igpgraphicspathiterator

Igpgraphicspathiterator can traverse sub-paths and path tags in a path. Igpgraphicspathiterator. count; {total number of points} igpgraphicspathiterator. subpathcount; {number of sub-paths} igpgraphicspathiterator. hascurve; {include curve}

Total Pages: 64722 1 .... 18823 18824 18825 18826 18827 .... 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.