Metro的风格很漂亮啊,写了个代码看了看还算舒服
时间:2011-09-17
来源:互联网
开个新FORM,丢4个image上去,一个Button
然后copycode。蛮好看的
Delphi(Pascal) code
然后copycode。蛮好看的
Delphi(Pascal) code
procedure TForm1.Button1Click(Sender: TObject); var bmp:TBITMAP; procedure Setsize; begin color:=clBlack; Width:=446; Height:=527; with Image1 do begin Left := 16 ; Top := 16 ; Width := 209; Height := 121; Stretch:=true; end; with Image2 do begin Left := 16 ; Top := 152 ; Width := 209 ; Height := 105; Stretch:=true; end; with Image3 do begin Left:= 16; Top := 272 ; Width := 209; Height := 113; Stretch:=true; end; with Image4 do begin Left := 240; Top := 16; Width := 177; Height := 369 ; Stretch:=true; end; end; begin bmp:=TBitmap.Create; bmp.Canvas.Brush.Color:=$00FE913C; bmp.Width:=250; bmp.Height:=150; bmp.Canvas.Font.Color:=clWhite; bmp.Canvas.Font.Size:=20; bmp.Canvas.Font.Name:='宋体'; bmp.Canvas.Font.Style:=[fsBold]; bmp.Canvas.TextOut(20,20,''); //文字 Setsize; image1.picture.bitmap:=bmp; image2.picture.bitmap:=bmp; image3.picture.bitmap:=bmp; image4.picture.bitmap:=bmp; bmp.Free; end;
作者: shuaialang 发布时间: 2011-09-17
沒明白
作者: xstdljj 发布时间: 2011-09-17
引用 1 楼 xstdljj 的回复:
沒明白
沒明白
实际操作下就明白了
作者: shuaialang 发布时间: 2011-09-17
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28