procedure TForm1.PaintBox1Paint(Sender: TObject);
var
I : Integer;
begin
for i := 0 to 99 do
begin
PaintBox1.Canvas.Font.Size := 12;
PaintBox1.Canvas.TextOut(10,i * 18,'大小');
end;
end;
var
I : Integer;
begin
for i := 0 to 99 do
begin
PaintBox1.Canvas.Font.Size := 12;
PaintBox1.Canvas.TextOut(10,i * 18,'大小');
end;
end;
解决方案 »
- 自动投票软件源码
- 请指点:这个SQL语句该怎么写?
- 两数相除取整,一个非常奇怪的错误,请高手们进来看看,在线等
- 在DBGRID中,以便对selectedrows进行操作。在程序中如何解决将几条记录设为被选中状态。
- 我想请问 fieldbyname 能不能实现多表数据的输出呢?
- 汉字转换成UCS2编码?
- 求助!怎样获得本机上的TTS引擎语音列表?
- insert问题
- 使用dbExpress控件(CloneCursor+SQL语句)搜寻数据时如何解决产生数据重复问题
- 请问设置ControlStyle属性为何无效?
- 如何判断自定义指针的类型?
- 下面的功能能否实现?我的表中没有字段名称,我想在SELECT语句中加入一个临时的字段,如何加入?数据库为Access。
--
PaintBox1.Canvas.Font.Name := '宋体';
unit Unit1;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls;type
TForm1 = class(TForm)
ScrollBox1: TScrollBox;
PaintBox1: TPaintBox;
procedure FormCreate(Sender: TObject);
procedure PaintBox1Paint(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.FormCreate(Sender: TObject);
begin
ScrollBox1.VertScrollBar.Range := 1000;
ScrollBox1.Height := 241;
end;procedure TForm1.PaintBox1Paint(Sender: TObject);
var
I : Integer;
begin
for i := 0 to 99 do
begin
PaintBox1.Canvas.Font.Size := 12;
PaintBox1.Canvas.TextOut(10, i * 18, '´óС');
end;
end;end.