随笔分类 - Delphi学习 / 控件相关
摘要:Delphi:cxGrid的使用方法 1. 去掉cxgrid中抬头的box ,在tableview1的ptionsview的groupbybox=false;2. 在GRID footer 中加入sum(列), tableview1的optionsview的footer=ture然后在cxGRid1
阅读全文
摘要:1.FastReport中如果访问报表中的对象?可以使用FindObject方法。TfrxMemoView(frxReport1.FindObject(’memo1′)).Text:=’FastReport’; 2.FastReport中如何使用上下标?设置frxmemoview.AllowHTML
阅读全文
摘要:cxGrid1DBTableView1.Controller.FocusedRowIndex 当前行号 cxGrid1DBTableView1.Controller.FocusedRow 当前行 cxGrid1DBTableView1.Controller.FocusedColumn 当前列 cxG
阅读全文
摘要:procedure TForm1.scSplitView1MouseEnter(Sender: TObject);begin if scSplitView1.Opened then Exit; scSplitView1.Opened := True; Label1.Visible := True;
阅读全文
摘要:效果图大概如下图所示,它能体现出主表里每一条记录的入仓记录,左边的加减号可以展示与隐藏从表. 结构设计如上图右下角所示,做两个level,和两个DB table,从结构上可以很晰的看到,TV报废池是主表,TV查询是从表. 我们需要做两组数据集,SQL内容按业务自己看着写. 然后是主从表的关联设置,这
阅读全文
摘要:把cxGridView里OptionsView选项中的两项修改成如下 OptionsView.Indicator = TrueOptionsView.IndicatorWidth = 40//宽度 在customDrawIndicatorCell事件中填写 procedure TForm1.cxGr
阅读全文