社区
VCL组件使用和开发
帖子详情
如何在StringGrid中做出下拉框?
lyq81404
2003-09-14 10:32:43
如何在StringGrid中做出下拉框?
...全文
119
4
打赏
收藏
如何在StringGrid中做出下拉框?
如何在StringGrid中做出下拉框?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
domustdo
2003-10-15
打赏
举报
回复
在StringGrid的cell中嵌入ComboBox
void __fastcall TForm1::FormCreate(TObject *Sender)
{
...
pComboEditor = new TComboBox(this);
pComboEditor->Parent = this;
pComboEditor->Visible = false;
pComboEditor->Style = csDropDownList;
pComboEditor->OnChange = ComboEditorChange;
...
}
void __fastcall TForm1::PlaceComboEditor(void)
{
TRect Rect = StringGrid1->CellRect(StringGrid1->Col,StringGrid1->Row);
pComboEditor->Top = StringGrid1->Top;
pComboEditor->Left = StringGrid1->Left;
pComboEditor->Text = EmptyStr;
pComboEditor->Top = pComboEditor->Top + Rect.Top +
StringGrid1->GridLineWidth;
pComboEditor->Left = pComboEditor->Left +
Rect.Left + StringGrid1->GridLineWidth+1;
pComboEditor->Height = (Rect.Bottom - Rect.Top) + 1;
pComboEditor->Width = (Rect.Right - Rect.Left) + 0;
pComboEditor->Visible = true;
pComboEditor->SetFocus();
}
ljianq
2003-10-13
打赏
举报
回复
使用TMS的控件方便,在http://www.51delphi.com/有下载。
chnlog
2003-10-12
打赏
举报
回复
到www.ffsoft.net/index.htm上去看看
czxwm
2003-10-12
打赏
举报
回复
关注
checkbox in
string
grid
表
中
加上
下拉框
checkbox
string
grid
加下拉 加
下拉框
checkbox in
string
grid
表
中
加上
下拉框
源码
Delphi为
String
Grid
控件增加Combobox
下拉框
.rar
Delphi为
String
Grid
网格显示控件
中
增加
下拉框
功能,也就是在
Grid
控件
中
添加Combobox下拉列表的功能,在任意列显示一个ComboBox功能,如演示截图所示,可大大扩展
Grid
的功能。生成列表: with Sender as TComboBox do begin hide; if itemindex >= 0 then with
String
Grid
1 do Cells[col, row] := Items[itemindex]; end;
Delphi在
string
Grid
控件
中
嵌入Combobox
下拉框
Delphi在
string
Grid
控件
中
嵌入Combobox
下拉框
,源码,供参考。
Delphi
中
String
Grid
动态绑定下拉列表
Delphi
中
String
Grid
动态绑定下拉列表
Delphi在
String
Grid
中
设置只读栏.rar
Delphi在
String
Grid
中
设置只读栏,也就是让
String
Grid
中
显示的数据只供读取需要,不支持编辑、复制等功能,鼠标无法选择文字,是一个只有只读属性的
String
Grid
。
VCL组件使用和开发
604
社区成员
13,460
社区内容
发帖
与我相关
我的任务
VCL组件使用和开发
C++ Builder VCL组件使用和开发
复制链接
扫一扫
分享
社区描述
C++ Builder VCL组件使用和开发
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章