社区
Delphi
帖子详情
Delphi中QRDBText如何用代码控制换行?
ENIAC1946
2003-12-25 03:45:59
各位:
Delphi中QRDBText如何用代码控制换行?
...全文
47
2
打赏
收藏
Delphi中QRDBText如何用代码控制换行?
各位: Delphi中QRDBText如何用代码控制换行?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
happyhong
2004-01-02
打赏
举报
回复
楼上说得太麻烦了
konhon
2003-12-25
打赏
举报
回复
如果是英文的话,把AutoSize设置为False,AuotStretch及WrapText设置True 就可以啦。
是中文的话,要在字符中添加一些空格才行。
建议用QrMemo和Memo控件来实现换行。
procedure lineBreakQRMemo(text: string; const textMemo: TMemo; const QRMemo: TQRMemo);
var
i: integer;
begin
textMemo.Width := QRMemo.Width;
textMemo.Height := QRMemo.Height;
textMemo.Font.Name := QRMemo.Font.Name;
textMemo.Font.Size := QRMemo.Font.Size;
textMemo.Text := text;
QRMemo.Lines.Clear;
for i := 0 to textMemo.Lines.Count - 1 do
QRMemo.Lines.Add(textMemo.Lines.Strings[i]);
end;
Delphi
报表(QuickReport & FastReport)
第二步:双击frxReport,根据需要添加相应的band栏,如ReportTitle、ColumnHeader、MasterData、PageFooter,用
Text
Object写好标题、列名等(
Text
Object类似于
Delphi
的Lable);然后,菜单Report->Data选
中
...
Delphi
Tips and Articles 3
1在db控件
中
捕捉字段变化前后的值 from google groupshttp://groups.google.com/group/borland.public.
delphi
.thirdparty-tools/browse_thread/thread/46ff3c56af4174a1/9b071486516dadb1?...
DELPHI
7.0软件 自带有报表 Quick Report组件(TQRShape等所有组件 说明)
DELPHI
7.0软件自带有报表Quick Report组件,但是默认的情况下,工具栏
中
是没有的,需要手动添加,步骤: component->install packages->add->\borland\bin\dclqrt70.bpl 一、组件功能简介 上面的两个图...
StringGrid使用教程(
Delphi
)
2003-11-17 16:28:41 当我将StringGird的options属性
中
包含goRowSelect项时每当我选
中
StringGrid
中
一行, 则选
中
行用深蓝色显示,我想将深蓝色改为其他颜色应怎样该?当我将StringGird的options属性
中
包含...
Delphi
的StringGrid使用技巧
代码
当我将StringGird的options属性
中
包含goRowSelect项时每当我选
中
StringGrid
中
一行, 则选
中
行用深蓝色显示,我想将深蓝色改为其他颜色应怎样该? 当我将StringGird的options属性
中
包含goRowSelect项时每当我...
Delphi
5,390
社区成员
262,735
社区内容
发帖
与我相关
我的任务
Delphi
Delphi 开发及应用
复制链接
扫一扫
分享
社区描述
Delphi 开发及应用
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章