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,学会自学