Generics collections tlist (2): first, last, indexof, lastindexof

Unit unit1; interfaceuses windows, messages, extensions, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) button1: tbutton; Procedure button1click (Sender: tobject); end; var form1: tform1; implementation {

Regularexpressions (3) working ideas of regularexpressions

Assume there is such a string of text: aaa1 bbb2 aa11 bb22 a111 b222 AAAA You can use the expression [A-Za-Z] + \ D + to extract the first six strings. TestCode: Uses regularexpressions; Procedure tform1.formcreate (Sender: tobject); var

Gdiplus [8]: wrapmode attribute of igptexturebrush

Example image: ExampleCode: Uses gdiplus; Procedure injection (Sender: tobject); var graphics: igpgraphics; Image: igpimage; brush: igptexturebrush; rect: tgprect; begin chdir ('C: \ gdiplusimg \'); image: =

Gdiplus [9]: igptexturebrush Transform

Translatetransform: translation; Scaletransform: scale down; Rotatetransform: rotation; The multiplytransform method and the transform attribute can complete more transformations including the preceding transformations. The resettransform

Gdiplus [26]: igppen: Build a paint brush with a paint brush

Color is the basic attribute of a paint brush. It is interesting to use a paint brush to create a paint brush. Five paint brushes are acceptable, but it makes no sense to use solid paint brushes; After the image is created, you can use the

Gdiplus [27]: igppen: alignment (Brush alignment)

Uses gdiplus; Procedure tform1.formpaint (Sender: tobject); var graphics: igpgraphics; blackpen, greenpen: igppen; rect: tgprect; begin rect. initialize (20, 20, 80, 80); graphics: = tgpgraphics. create (handle); blackpen: = tgppen. create ($ ff00000

Tclientdataset [20]: Use blob Field

Blob (Binary Large Object) fields include: Ftblob, ftmemo, ftgraphic, distance, fttypedbinary, ftcursor, ftfixedchar, ftwidestring, distance, ftadt, ftarray, ftreference, ftdataset, distance, distance, ftvariant, ftinterface, ftidispatch,

Tclientdataset [28]: read and write XML files in other formats

Tclientdataset can directly access the XML with its own format specifications. accessing other formats of XML requires corresponding ing files (*. XTR ). This type of *. XTR file is created using XML mapper (which comes with Delphi and can be

Output a function with spaces alignment strings-reply to the question of "Old A123"

Problem Source: http://www.cnblogs.com/del/archive/2007/12/18/1005161.html#1786227 {Function} function toalignstring (const STR: string; Len: integer): string; var I, n: integer; s: string; begin if ABS (LEN) 0 then s: = stringofchar ('', n);

Learning Win32 Assembly [1]: select the editing and compilation tool

Win32 compilation tools mainly include MASM and tasm. I chose the former for a wide range of use and ease of communication. According to the introduction, I first downloaded masm32 (http://www.masm32.com/), found good, but not what I want most.

Learning Win32 compilation [13]: defining symbolic constants (=, equ, textequ)

=, Equ, textequ functions are similar, and all the symbols they define will be replaced by their specified constant values in the compilation predecessors. In contrast, EQU is easier to use. = Example ; Test13_1.asm.386.model

Extract all links on the web page, click the nth link-Reply to "Liu Li"

Problem Source: http://www.cnblogs.com/del/archive/2009/01/08/1370907.html#1425544 In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs,

Generics collections tlist (8): Sort

Unit unit1; interfaceuses windows, messages, extensions, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) button1: tbutton; Procedure button1click (Sender: tobject); end; var form1: tform1; implementation {

Wave file (14): waveoutsetplaybackrate and waveoutsetpitch

Both parameters can also be get (waveoutgetplaybackrate, waveoutgetpitch) The default playback speed of the device is $00010000. If this value is multiplied by 2, the playback speed is doubled. If this value is divided by 2, the playback speed

Inspired by inputbox and inputquery

I have read the source code of inputbox and inputquery functions, and I have some gains and experiences... You can use inputbox to obtain user input strings: Procedure tform1.button1click (Sender: tobject); var STR: string; begin

Gdiplus [41]: igpregion Region

// Create a region: tgpregion. create (); {the parameter can be a rectangle, path, hrgn, or region data, or no parameter} tgpregion. fromhrgn (); {initialize from hrgn} // calculate the region (rectangle, path, or another region): igpregion.

JSON superobject (13): about so and SA Functions

It is very convenient to implement an isuperobject interface through the superobject public function so; A string parameter can be any type or even a constant array. Both SA and so return an isuperobject;So can generate an isuperobject of

Gdiplus [47]: igpmatrix (2)

Attributes and methods of igpmatrix: // Method igpmatrix. reset; {reset matrix to obtain the unit matrix (the diagonal line is 1 and the other is 0)} igpmatrix. translate (); {translation} igpmatrix. scale (); {scale} igpmatrix. rotate ();

Win32 compilation [15]: loop and label

Loop is executed repeatedly; From where? This requires "label "; How many times? Tell the ECX register the number of iterations. Stupid way to calculate 3x8 = 24 ; Test15_1.asm.386.model flat, stdcallinclude windows. incinclude

Gdiplus [58]: attributes and Methods unique to image (10) igpmetafile

This includes: // Method igpmetafile. getmetafileheader; {retrieve Metafile's metafileheader} igpmetafile. gethenhmetafile; {obtain the Windows handle of the Enhanced Metafile} igpmetafile. playrecord (); {playing a single Metafile record} //

Total Pages: 64722 1 .... 27088 27089 27090 27091 27092 .... 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.