惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
Google DeepMind News
Google DeepMind News
博客园 - 【当耐特】
量子位
博客园 - 司徒正美
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
Jina AI
Jina AI
J
Java Code Geeks
腾讯CDC
大猫的无限游戏
大猫的无限游戏
V
Visual Studio Blog
I
InfoQ
D
Docker
Recent Announcements
Recent Announcements
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
宝玉的分享
宝玉的分享
G
Google Developers Blog
GbyAI
GbyAI
Y
Y Combinator Blog
有赞技术团队
有赞技术团队
H
Help Net Security

博客园 - DELPHI技术

How to get File Summary Info 动态建表(示例) DBGridEh应用实例(来自delphi园地) DBGrid、DBGrideh专题总结(来自delphi园地) delphi 默认情况下参数及返回值的保存位置 How to Parse a Delimited String Into a String List - DELPHI技术 2005年5月20日Borland Delphi首席科学家Danny Thorpe谈Delphi的未来! 什么是BPL?在BPL中有多少单元的源代码 使用动态包导出函数的调用单元完整源代码 使用动态包导出函数的单元的完整源代码 “类引用”概念 创建包 包和DLL的对比 动态包(bpl)的一个窗体源代码 动态调用包(bpl)的窗体源码 Delphi中预想不到的代码 一个完整身份证效验程序 基本算法(用 PASCAL 描述) 公用函数
Rotating Text
DELPHI技术 · 2005-11-21 · via 博客园 - DELPHI技术

procedure TForm1.Button1Click(Sender: TObject) ;
var
   lf : TLogFont;
   tf : TFont;
begin
   with Form1.Canvas do begin
     Font.Name := 'Arial';
     Font.Size := 24;
     tf := TFont.Create;
     try
       tf.Assign(Font) ;
       GetObject(tf.Handle, sizeof(lf), @lf) ;
       lf.lfEscapement := 450;
       lf.lfOrientation := 450;
       tf.Handle := CreateFontIndirect(lf) ;
       Font.Assign(tf) ;
     finally
       tf.Free;
     end;
     TextOut(20, Height div 2, 'Rotated Text!') ;
   end;
end;