TextRect这个函数最后的参数是字符串呀?定义:
procedure TCanvas.TextRect(Rect: TRect; X, Y: Integer; const Text: string);
procedure TCanvas.TextRect(Rect: TRect; X, Y: Integer; const Text: string);
解决方案 »
- 树节点的拖动
- ~~~字符串的问题~~~~
- 如何自动调用播放器播放文件?(一定要帮忙啊!!!)
- 简单的语法问题
- SELECT后怎么取其中一个字段的值!
- 使用ExitWindowsEx为什么不起作用???
- 紧急!应各位邀请已up代码
- 三层结构(BCB+ADO+Access),为什么ApplyUpdatas(-1)后,后台数据库不能更新或只能部分更新(提供结构具体配置和详细代码)
- Delphi7设置局面
- delphi有没有想VB一样共同的一个模块
- 假如设置Edit编辑框的最大长度为20,正常输入超长可以提示,但是Paste的内容超长,则有什么办法也可以提示?
- 我下载的Kylix安装文件为RSC-KCS.bin.iso,应该如何安装?
Writes a string inside a clipping rectangle. procedure TextRect(Rect: TRect; X, Y: Integer; const Text: WideString; TextFlags: Integer = 0);DescriptionUse TextRect to write a string within a limited rectangular region. Any portions of the string that fall outside the rectangle passed in the Rect parameter are clipped and don't appear. The upper left corner of the text is placed at the point (X, Y).The TextFlags parameter specifies how the text should be aligned within the rectangle. It is an integer built by adding a horizontal and a vertical alignment flag. The alignment flags are as follows:Flag Type MeaningAlignLeft Horizontal Align text to the left edge of the rectangle.
AlignRight Horizontal Align text to the right edge of the rectangle.
AlignHCenter Horizontal Center text horizontally in the rectangle.
AlignTop Vertical Align text to the top edge of the rectangle.
AlignBottom Vertical Align text to the bottom edge of the rectangle.
AlignVCenter Vertical Center text vertically in the rectangle.You can also use the AlignCenter flag to indicate AlignHCenter + AlignVCenter.我就是想用Textflags参数的功能,请大家指点?