// An example containing two forms: Program project1; uses forms, unit1 in 'unit1. PAS '{form1}, unit2 in 'unit2. PAS '{form2}; {$ R *. res} begin application. initialize; application. mainformontaskbar: = true; application. createform (tform1, form1
// Class unit person; interfaceuses dialogs; Type tperson = Class (tobject) Private fname: string; Fage: integer; Public constructor create (strname: string; intage: integer ); destructor destroy; override; function getname: string; function getage:
// Obtain the current position of the mouse in the form procedure tform1.formmousedown (Sender: tobject; button: tmousebutton; shift: tshiftstate; X, Y: integer); var STR: string; begin STR: = format ('% d, % d', [x, y]); showmessage (STR); end;
//
The shortcut menu item uses the shortcut Cut attribute to set the shortcut key. Shortcut cut is of the tshortcut type, and tshortcut is a subfield: 0 .. 65535.
All optional values for shortcut are listed in: http://www.cnblogs.com/del/archive/2008/0
// Declaration: getwindowtext (hwnd: hwnd; {window handle} lpstring: pchar; {pointer to the buffer for Receiving text} nmaxcount: INTEGER {specify the buffer size, which contains null characters; if the text exceeds the limit, it will be truncated.})
// To understand this, use the callback function {define method type} type tfuntype = function (X: integer): integer; {function type} tproctype = procedure (Name: string); {process type} {define a function that meets the tfuntype} function myfun (X:
The variant structure, that is, the variant record, is a complicated concept and is not recommended by experts.
I want to figure it out.
The maximum cardinal is 4294967295, which is 4 bytes in size and its binary representation is:11111111 111111
//? The meaning of the number is to match 0-1 times, if you need to match? How to Do var REG: tperlregex; begin REG: = tperlregex. Create (NiL); Reg. Subject: = 'Are you fine? Okay! '; Reg. RegEx: = '\? |! '; // Escape \ Reg. replacement: = '◆ ';
Delphi's camera control is very simple. All the underlying messaging functions have been defined in the system, Windows, and messages units. We only need to call them reasonably. I made the related operations of the camera into a control, so that
During this period of time, I have been working on Industrial Automatic Control Projects. What I use is
SiemensAt that time, the host computer used Siemens
WinCCThe change of C in use is intolerable and cannot be called modern software without event-
// Example in Red: // 1. RGB mode: Self. Color: = $ 0000ff; // However, It is opposite to # ff0000 in HTML and should be called BGR.
// 2. RGB score, for example: Self. Color: = RGB (255, 0, 0 );
// 3. standard mode in Delphi: Self. color: = $ 0000
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