Learning the implementation of the tlist class [8]

Now you are going to create the items array attribute. Enter the following in the public area: Code : Property items [index: integer]: pointer; The code after executing SHIFT + Ctrl + C is: ... Tmylist = Class (tobject) Private...

A simple example of timer-reply to the question "timer008"

Problem Source: http://www.cnblogs.com/del/archive/2008/07/09/1073218.html#1249648 Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, extctrls, stdctrls; Type tform1

Show System Tray list (hide and display)-Reply to "anybet" question

Problem Source: http://www.cnblogs.com/del/archive/2008/12/30/1364557.html#1417716 In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs,

Learn more about GDI + [90]: tgpimage (10)-Get the image palette Information

In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls, grids; Type tform1 = Class (tform) drawgrid1: tdrawgrid; openalodig1:

Pixel format of Bitmap

1. Determine the pixel format of the bitmap: VaR bit: tbitmap; pix: tpixelformat; s: string; begin bit: = tbitmap. create; bit. loadfromfile ('C: \ temp \ test.bmp '); // bitmap path pix: = bit. pixelformat; s: = ''; Case pix of pfdevice: S:

Use clipboard [1]: astext, settextbuf, and gettextbuf

The clipboard class tclipboard is defined in the clipbrd unit. Uses clipbrd is required before use; Uses clipbrd; Procedure tform1.button1click (Sender: tobject); var clip: tclipboard; begin clip: = tclipboard. create; {create} clip.

Win32 compilation [29]-string commands: movs *, CMPs *, SCAs *, lods *, rep, repe, repne, etc.

Here the "string" is not a single string, including all consecutive data (such as arrays); the string command is only used for memory operations. Move string commands: movsb, movsw, and movsd; from ESI-> EDI; after execution, the ESI and EDI

How to delete a specified element of a dynamic array-Reply to "splendour"

Type Tarr = array of tpoint; {It is much easier to define an array as a type. Here, only tpoint test is used.} {the process of deleting the specified element of a dynamic array: the ARR parameter is the array name, the index parameter is the index

Use Tregistry Class [4]: association between file opening and file icons

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

Multi-thread programming (13)-event (event object) for multi-thread synchronization)

It is said that event (event object) is the most primitive synchronization method of multithreading, and I think it is the most flexible one. The event object (the handle table) mainly contains two Boolean variables. You can see from its creation

Learn more about GDI + [25]: tgppen-width, color and line cap

In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls, tecanvas, comctrls; Type tform1 = Class (tform) combox1: tcombobox; combox2:

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

apc

According to the main function of waitabletimer, it is a bit inappropriate to discuss it in the thread synchronization topic. It is about to end. // Check the APC callback function Format again: Procedure timerapcproc (lpargtocompletionroutine:

Drawing functions of Delphi [6]-polygon and polyline

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

Learn ttreeview [2]-items. item [I], items [I],. Text, setfocus (set focus), select (select)

In this example: Source code: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, percentages, stdctrls; Type tform1 = Class (tform) treeview1: ttreeview; button1: tbutton; button2:

Learn more about GDI + [44]: text output-font

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 formpaint (Sender:

Example of moving an animation rectangle-Reply to "ps8.0"

Problem Source: http://www.cnblogs.com/del/archive/2008/06/12/1131232.html#1224216 First, there are two ways to implement this problem: 1. edges and edges. 2. The image is first drawn in the memory and then copied to the front-end. This is

Learning the implementation of the tlist class [6]

Implement the tmylist. Add function. The add function in tlist uses a grow method. The principle is that the more elements, the more memory will be prepared for the future. Here we omit the memory reserved for four elements; The add function in

Delphix (87) of Delphi and DirectX: tdib. drawtransparent, drawtranslucent, drawalpha ();

Tdib. drawtransparent: transparent according to the specified transparent color; Tdib. drawtranslucent: transparent Based on the specified transparent color, and then translucent; DiB. drawalpha: first transparent Based on the specified transparent

Gdiplus [50]: image (2) about create

The create method provided by the igpimage class: Image: = tgpimage. create (file (or stream), Boolean); // The Boolean value defaults to false. If it is true, the file (or stream) is used) embedded color management information for color

Gdiplus [54]: image (6) image decoding and encoding

If you can open an image in a certain format, you will have a corresponding decoder. If you can save the image in a certain format, you will also have a corresponding encoder. The following program uses igpimagecodecinfoarray and igpimagecodecinfo

Total Pages: 64722 1 .... 16214 16215 16216 16217 16218 .... 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.