论坛


2011年4月14日 星期四

关于开放数组的小练习

万一| 万一的 Delphi 博客 |10:50:00

{整数求和函数,使用指定类型的开放数组} function Fun1(arr: array of Integer): Integer; var n: Integer; begin Result := 0; for n in arr do Inc(Result, n); end; {整数、浮点数或布尔值的求和函数,使用无类型的开放数组} function Fun2(arr: array of...

Direct2D (40) : 分别设置 IDWriteTextLayout 中文本的颜色

万一| 万一的 Delphi 博客 |09:31:00

function SetDrawingEffect( const drawingEffect: IUnknown; //颜色接口; 该接口需自己定义和实现, 只要能存取颜色即可 textRange: TDwriteTextRange //要设置的范围 ): HResult; stdcall;测试代码:unit Unit1; interface uses Windows, Messages, SysU...

Delphi Labs: DataSnap XE - Callbacks

Embarcadero| CodeCentral Delphi Submissions |06:07:56

"Delphi Labs" Delphi XE DataSnap demo showing the most simple use of callbacks. Both client and server are VCL Forms applications. Demo covers broadcasting to a channel and notifying a specific callback.You can find more informat...

Delphi Labs: DataSnap XE - Callbacks

Embarcadero| EDN Delphi Feed |00:12:53

2011年4月13日 星期三

AlphaControls 2010 v7.34

Embarcadero| CodeCentral Delphi Submissions |23:19:26

A package of standard and unique skinned VCL for UI design development using "AlphaSkins". AlphaControls is an easy-to-use universal and powerful tool for developing original skinned and non-skinned business/media applications. W...

AlphaControls Lite Edition v7.34

Embarcadero| CodeCentral Delphi Submissions |23:17:46

AlphaControls Lite Edition is a part of the AlphaControls package which can work without any limitations in Delphi 5/6/7/2005-XE and C++ Builder 6/2006-XE under Windows XP and newer. By using these components you can see the basic ideas behind Alp...

Direct2D (39) : 使用 IDWriteTextLayout.Draw() 方法绘制文本

万一| 万一的 Delphi 博客 |15:59:00

使用 IDWriteTextLayout.Draw() 方法绘制文本主要是实现 IDWriteTextRenderer 接口。IDWriteTextRenderer 接口只能是手动实现,很灵活。unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Dir...

Direct2D (38) : RenderTarget.DrawTextLayout() 与 IDWriteTextLayout

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

使用 RenderTarget.DrawTextLayout() 方法主要是设置 IDWriteTextLayout 接口;构建 IDWriteTextLayout 接口需要 IDWriteTextFormat 接口。IDWriteTextLayout 接口是经过完全分析和格式化后的文本块。{RenderTarget.DrawTextLayout() 方法} procedure DrawTextLayout...

Direct2D (37) : 使用其它画刷绘制文本

万一| 万一的 Delphi 博客 |11:32:00

uses Direct2D, D2D1; {建立位图画刷的函数} function GetBitmapBrush(Canvas: TDirect2DCanvas; filePath: string): ID2D1BitmapBrush; var rBBP: TD2D1BitmapBrushProperties; bit: TBitmap; begin bit := TBitmap.Create; bit.LoadFromFile(filePath); ...

Cindy components pack v4.12

Embarcadero| CodeCentral Delphi Submissions |05:37:05

Package with more than 40 components for all delphi versions to build windows applications. - Gradient controls (buttons, speedbuttons, panels) with features like colored bevels, wallpaper, shadowText. TcyCommunicate and TcyCommRoomConnector allow...

2011年4月12日 星期二

Direct2D (36) : RenderTarget.DrawText() 与 IDWriteTextFormat 之一

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

TDirect2DCanvas 提供了两种输出文本的方法:TextOut()、TextRect(),因太过高级,基本没有实用价值。TDirect2DCanvas.RenderTarget 有三种输出文本的方法:DrawText()、DrawTextLayout()、DrawGlyphRun()。DrawText() 对文本格式的控制能力类似 TMemo;DrawTextLayo...

Direct2D (36) : RenderTarget.DrawText() 与 IDWriteTextFormat

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

TDirect2DCanvas 提供了两种输出文本的方法:TextOut()、TextRect(),因太过高级,基本没有实用价值。TDirect2DCanvas.RenderTarget 有三种输出文本的方法:DrawText()、DrawTextLayout()、DrawGlyphRun()。DrawText() 对文本格式的控制能力类似 TMemo;DrawTextLayo...

Do you have a story to tell about using Amazon’s EC2 with RAD Studio?

Embarcadero| EDN Delphi Feed |17:00:00

Rubicon Lite v3.086 for XE

Embarcadero| CodeCentral Delphi Submissions |03:32:43

You retain control of all data, including all the content and all the indexing.Beginner to advanced search expressions are supported.... from simple wildcard queries to complex expressions.One system works with all major database bridges used by D...

2011年4月11日 星期一

Direct2D (35) : 通过 DirectWrite 获取字体列表

万一| 万一的 Delphi 博客 |19:09:00

uses Direct2D, D2D1; procedure TForm1.Button1Click(Sender: TObject); var iFontCollection: IDWriteFontCollection; //字体集合 iFontFamily: IDWriteFontFamily; //字族 iLocalizedStrings: IDWriteLocalizedStrings; //按区域设置名称?..

« 上一页

下一页 »