论坛


2009年10月15日 星期四

Delphi 2010 新增功能之: Rtti 单元(2)

万一| 万一的 Delphi 博客 |17:34:00

通过 Rtti 还能够调用一个类的方法, 也能读取或设置其属性值.unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; Button2...

Delphi 2010 新增功能之: Rtti 单元(1)

万一| 万一的 Delphi 博客 |16:23:00

通过 Rtti 单元的 TRttiContext(是个 record), 可以方便地获取类的方法、属性、字段的列表.unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) M...

Delphi 2010 新增功能之: 软键盘(TTouchKeyboard)

万一| 万一的 Delphi 博客 |12:21:00

本例效果动画图:代码文件:unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Keyboard, TeCanvas; type TForm1 = class(TForm) TouchKeyboard1: TTouchKeyboard; Edit1:...

Random Thoughts on the Passing Scene #132

Nick Hodges| Nick Hodges |12:19:35

Oh, by the way, another good way to get your comments deleted is to use profanity.  Should have mentioned that before. The guys over at Gurock Software have a really cool article called “Working with Delphi’s new Exception.StackTrace” sho...

Troubleshooting the "Left Side Cannot Be Assigned To" Compile Time Delphi Error

About.com| About.com Delphi Programming |08:00:28

in Delphi TIPS :: According to the "Proper using of a Record Field/Property in a Class" poll, only 20+% of Delphi developers know what usage of a Record Delphi type...