首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

TextRect编译不过。解决方法

2012-12-30 
TextRect编译不过。Canvas.TextRect(Rt, StrRestul,[tfSingleLine, tfCenter, tfVerticalCenter])[错误] G

TextRect编译不过。
Canvas.TextRect(Rt, StrRestul,[tfSingleLine, tfCenter, tfVerticalCenter]);

[错误] GraphicParseFrm.pas(132): Incompatible types: 'Integer' and 'String'
[错误] GraphicParseFrm.pas(132): Undeclared identifier: 'tfCenter'
[错误] GraphicParseFrm.pas(132): Incompatible types: 'Integer' and 'Set'
[致命错误] GraphicParseDemo.dpr(5): Could not compile used unit 'GraphicParseFrm.pas'

本人刚学delphi,请各位帮个忙谢谢。
[解决办法]
那里找来的代码? 参数类型不对
看看下面的跟你的有什么不一样,参数的意思不懂就先去百度一下吧

Canvas.TextRect(Rect(10,10,100,100), 20,20,'Hello World');
[解决办法]
参数完全不对,不会看帮助啊
[解决办法]
这种问题F1,学会自学

热点排行