Delphi calls WINAPI characters and String functions (10)

lstrcpy-Copy string Unit Unit1; interface uses  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,  Dialogs, StdCtrls; type  TForm1 = class(TForm)   Button1: TButton;   Button2: TButton;   Button3: TButton;   procedure

Delphi calls WINAPI characters and String functions (8)

Ischarupper-Is it a capital letter? Unit Unit1; interface uses  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,  Dialogs, StdCtrls; type  TForm1 = class(TForm)   Button1: TButton;   Button2: TButton;   Button3: TButton;  

Delphi CALL WINAPI: Input cursor-related functions [4]

This example effect chart: Code files:Unit Unit1;InterfaceUsesWindows, Messages, sysutils, variants, Classes, Graphics, Controls, Forms,Dialogs;TypeTForm1 = Class (Tform)Procedure Formmousedown (Sender:tobject;

Re-learning gdi+[31]: Tgppen

This example effect chart: Code files:Unit Unit1;InterfaceUsesWindows, Messages, sysutils, variants, Classes, Graphics, Controls, Forms,Dialogs, Stdctrls;TypeTForm1 = Class (Tform)Listbox1:tlistbox;Procedure Formcreate (Sender:tobject);Procedure

Re-learning gdi+[27]: Tgppen

This example effect chart: Code files:Unit Unit1;InterfaceUsesWindows, Messages, sysutils, variants, Classes, Graphics, Controls, Forms,Dialogs, Stdctrls, Extctrls;TypeTForm1 = Class (Tform)Combobox1:tcombobox;Procedure Formcreate (Sender:tobject)

Re-learning gdi+[26]: Tgppen

This example effect chart: Code files:Unit Unit1;InterfaceUsesWindows, Messages, sysutils, variants, Classes, Graphics, Controls, Forms,Dialogs, Stdctrls, Extctrls;TypeTForm1 = Class (Tform)Radiogroup1:tradiogroup;Procedure Formpaint

Re-learning gdi+[22]: Tgplineargradientbrush

TGPLinearGradientBrush.Create(  rect: TGPRect;      {线性渐变的界限}  color1, color2: TGPColor; {线性渐变起始色与终止色}  mode: TLinearGradientMode {渐变方向, 见下表} ); TGPLinearGradientBrush.Create(  rect: TGPRectF;  color1, color2: TGPColor;  mode: TLinearGradientMode );

Re-learning gdi+[13]: DrawBezier

This example effect chart: Code files:Unit Unit1;InterfaceUsesWindows, Messages, sysutils, variants, Classes, Graphics, Controls, Forms,Dialogs;TypeTForm1 = Class (Tform)Procedure Formpaint (Sender:tobject);Procedure Formmousedown (Sender:tobject;

Re-learning gdi+[10]: DrawClosedCurve

This example effect chart: Code files:Unit Unit1;InterfaceUsesWindows, Messages, sysutils, variants, Classes, Graphics, Controls, Forms,Dialogs, Stdctrls, Comctrls;TypeTForm1 = Class (Tform)Button1:tbutton;Trackbar1:ttrackbar;Procedure

Re-learning Gdi+[9]: DrawPolygon

This example effect chart: Code files:Unit Unit1;InterfaceUsesWindows, Messages, sysutils, variants, Classes, Graphics, Controls, Forms,Dialogs, Stdctrls;TypeTForm1 = Class (Tform)Button1:tbutton;Button2:tbutton;Procedure Formmouseup

Re-learning Gdi+[7]: DrawLines

This example effect chart: Code files:Unit Unit1;InterfaceUsesWindows, Messages, sysutils, variants, Classes, Graphics, Controls, Forms,Dialogs, Stdctrls;TypeTForm1 = Class (Tform)Button1:tbutton;Button2:tbutton;Procedure Formmouseup

Re-learning Gdi+[5]: DrawArc

This example effect chart: Code files:Unit Unit1;InterfaceUsesWindows, Messages, sysutils, variants, Classes, Graphics, Controls, Forms,Dialogs, Stdctrls, Spin, Extctrls;TypeTForm1 = Class (Tform)Panel1:tpanel;Label1:tlabel;Label2:tlabel;Spinedit1

Re-learning Gdi+[4]: DrawEllipse

This example effect chart: Code files: Unit Unit1;InterfaceUsesWindows, Messages, sysutils, variants, Classes, Graphics, Controls, Forms,Dialogs;TypeTForm1 = Class (Tform)Procedure Formpaint (Sender:tobject);Procedure Formcreate (Sender:tobject);

Re-learning Gdi+[3]: DrawRectangle

This example effect chart: unit Unit1; interface uses  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,  Dialogs; type  TForm1 = class(TForm)   procedure FormPaint(Sender: TObject);  end; var  Form1: TForm1;

Re-learning Gdi+[1]: Installing file headers

GDI + is a function library of Windows, from Windows\system32\gdiplus.dll, which contains 610 functions. Use in Delphi need to download and install GDI + for Delphi First (this is used for 2006, 2007 Win32 version). Provide a new download:

Beginner Delphi Embedded Assembly [28]

The following three function functions are the same, but the efficiency is different {Fun1 需要读取常数 0, 最慢} function Fun1: Integer; asm  mov eax, 0 end; {FUN2 and FUN3 only operate CPU registers, faster than FUN1} function Fun2: Integer; asm  sub

Beginner Delphi Embedded Assembly [21]

In addition to Byte, Word, Cardinal, and Integer, the integer type of Delphi is also: Longint, Longword, Shortint, Smallint, Int64 Wherein Longint is equivalent to an Integer; Longword is equivalent to Cardinal. There are three other types of this:

Beginner Delphi Embedded Assembly [11]

Delphi functionfunction DelphiFun(x: Integer): Integer; begin  Result := x * 2; end; assembly function, which is the same function as the above functionfunction AsmFun(x: Integer): Integer; asm  add eax, eax  {eax 可以获取第一个参数, 同时又是函数的返回值, 所以可以如此 简洁!}

Beginner Delphi Embedded Assembly [10]

return type Hosting location Char, Byte AL Registers SmallInt, Word AX Registers Integer, Longword, ansistring, pointer, Class EAX Registers Real48 EAX registers are pointers to

Beginner Delphi Embedded Assembly [6]

Access to Delphi variables in the assembly can be accessed using the & operator procedure Proc(str1,str2: string); var  s1,s2: string; begin  asm   mov ecx, &str1 {}   mov edx, &str2   mov &s1, ecx  {}   mov &s2, edx  end;  ShowMessage(s1 + s2);

Total Pages: 64722 1 .... 44627 44628 44629 44630 44631 .... 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.