Learn more about GDI + [86]: tgpimage (6)-drag an image

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

Unicode quick query table

-0fff 1000-1fff 2000-2fff 3000-3fff 4000-4fff 5000-5fff 6000-6fff 7000-7fff 8000-8fff 9000-9fff A000-AFFF B000-BFFF C000-CFFF D000-DFFF E000-EFFF F000-FFFF Loading...

Create a region using static array and dynamic array respectively-reply to the "old A123" question

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

How to compare whether two-dimensional arrays are equal-reply to the question "Aladdin"

One sentence: Use comparemem to compare memory. {Compare static array} procedure tform1.button1click (Sender: tobject); var arr1: array [0 .. 3] of ansichar; arr2: array [0 .. 3] of byte; begin arr1 [0]: = 'a'; arr1 [1]: = 'B'; arr1 [2]: = 'C

Winapi: loadstring-load a string from a resource

// Declaration: loadstring (hinstance: hinst; {EXE or DLL handle} uid: uint; {resource ID} lpbuffer: pchar; {buffer} nbuffermax: INTEGER {buffer size }): integer; {actual length of the returned string} // If there is such a string resource:

Functions used to extract words from strings and Chinese characters from strings

{Function for extracting words from a string} procedure strtowordlist (STR: string; var list: tstringlist); var P: pchar; I: integer; begin if list = nil then list: = tstringlist. create; List. clear; {remove duplicates} List. sorted: = true; List.

Winapi: systemparametersinfo

Example: Change the desktop Wallpaper VaR BMP path: pchar; begin BMP path: = 'C: \ temp \ test.bmp '; systemparametersinfo (spi_set1_wallpaper, 0, BMP path, spif_updateinifile); end; Too many systemparametersinfo parameters...

Isleapyear, isinleapyear-whether it is a leap year

Sysutils. isleapyear (); dateutils. isinleapyear (); Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) Procedure formcreate (Sender: tobject );

Yesterday, Today, tomorrow-yesterday, today, tomorrow

Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs; Type tform1 = Class (tform) Procedure formcreate (Sender: tobject); end; vaR form1: tform1; implementation {$ R *. DFM} uses dateutils;

Learning SQL statements-select (8): grouping Conditions

CodeFile: // The grouping condition can be whereprocedure tform1.button1click (Sender: tobject); begin with adodataset1 do begin close; commandtext: = 'select continent, AVG (area) as average area '+' from country where continent = "South

Delphi interface (1)-Preface

Some friends once praised me: this is easy to understand and can simplify complicated problems; I hope that my understanding of the interface can be helpful to everyone. However, I personally understand more components and hope to point out the

Delphi algorithm and Data Structure Learning and perception [1]: describes the importance of the algorithm through "sequential search" and "binary search"

Test: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) button1: tbutton; memo1: tmemo; procedure button1click (Sender: tobject); end; var

Using GDI to operate EMF files [1]: createenhmetafile, closeenhmetafile

EMF file is an Enhanced Metafile in windows. This example uses the simplest Code Creates an EMF file. Createenhmetafile (DC: HDC; {reference DC, 0 indicates reference current display device} filename: pchar; {file name, nil indicates

Tmainmenu class [1]

Automatically create an SDI application Program The program contains beautiful menus: The menu data is recorded in the Form file: Object mainmenu1: tmainmenu images = imagelist1 left = 8 Top = 152 object file1: tmenuitem caption = '&

Center, stretch, and tile of the image-reply to the question "I Am a flying bird"

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

Learning SQL statements-select (4): Sorting

Order by ASC | DESC In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls, extctrls, grids, dbgrids, DB, ADODB; type tform1 =

Learn ttreeview [16]-Add a check box to ttreeview (Reply to "ding Yongqi)

Problem Source: http://www.cnblogs.com/del/archive/2008/05/15/1114450.html#1199402 In this example: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, percentages, stdctrls;

Unofficial twaitabletimer class

Unit wtimer; interfaceuses windows, sysutils, syncobjs; Type handler = Class (tsynchroobject) protected fhandle: thandle; fperiod: longint; handler: tdatetime; flasterror: integer; flongtime: int64; public constructor create (manualreset: Boolean;

Write a drag-and-drop tshape-Reply to Wei's question

Problem Source: http://www.cnblogs.com/del/archive/2009/03/09/1234066.html#1471535 In this example: Custom class (tmyshape) unit: unit Unit2;interfaceuses Classes, Controls, ExtCtrls;type TMyShape = class(TShape) private fMouseFlag:

Simulate a tpanel with a background

Tpanel is used as a container in the program. You need to give it a background image. It turns out to be a problem! I found that the control tscrollbox, which I often use, is a good alternative. In this example, we need to add two image resources

Total Pages: 64722 1 .... 54246 54247 54248 54249 54250 .... 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.