社区
Delphi
帖子详情
新手请教,如何在TEdit和TComboBox中响应回车?
hongye_leaf
2002-08-12 01:20:51
如何在TEdit和TComboBox中响应回车?
在下刚入门,请指教!!
...全文
24
5
打赏
收藏
新手请教,如何在TEdit和TComboBox中响应回车?
如何在TEdit和TComboBox中响应回车? 在下刚入门,请指教!!
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
qhdsfh
2002-08-12
打赏
举报
回复
onkeypress事件下写:
If Key = #13 Then
SelectNext(ActiveControl,True,True);
honey_001
2002-08-12
打赏
举报
回复
同意ScoutKing(失眠夜)的观点.
luoweicaisd
2002-08-12
打赏
举报
回复
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
if key=#13 then
showmessage('enter press');
end;
procedure TForm1.ComboBox1KeyPress(Sender: TObject; var Key: Char);
begin
if key=#13 then
showmessage('enter press');
end;
mygodsos
2002-08-12
打赏
举报
回复
在edit1控件的onkeypress事件中双击鼠标,然后会在code页中出现一个
procedure Tform.edit1keypress(senter:Tcomponent;var key:char);
begin
end;
然后你在begin和end中写如下代码就行了
if key=#13 then
begin
.......
.......
end;
ScoutKing
2002-08-12
打赏
举报
回复
相应keydown事件:
procedure TForm1.Edit1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if (Key=13) then
begin
............
end;
end;
Delphi消除在T
Edit
控件
中
按下
回车
键时的声音.rar
Delphi消除在T
Edit
控件
中
按下
回车
键时的声音,默认情况下是有声音的,本程序会去掉这种操作音,变得很沉静。
一些 VCL 控件的Delphi用法示例参考.rar
一些 VCL 控件的Delphi用法示例参考,这些示例都挺基础和实用,对学习Delphi
中
的VCL控件使用有帮助: 动态创建主菜单和菜单项,加速TListBox控件的填充和清空,加速TTreeView控件的填充和清空,实现.dfm文件和.txt文件的互相转换,使程序能在循环
中
响应
界面操作,消除在T
Edit
控件
中
按下
回车
键时的声音,用剪贴板复制和粘贴图像,在StringGrid
中
设置只读栏,在TListbox、T
Combobox
中
实现自动搜索,在TStringGrid控件
中
删除整行……
matlab开发-T
EDIT
matlab开发-T
EDIT
。t
edit
使用模板创建m文件。
Android代码-T
Edit
T
Edit
T
Edit
is a simple text
edit
or for Android devices. T
Edit
includes a graphical file browser to make locating existing files and saving new files easy. Additionally T
Edit
enables you to keep multiple files open simultaneously, simply select the file tabs icon to be presented with a list of currently open documents. You can find various APK installers for T
Edit
at http://1337atr.weebly.com/t
edit
.html To the extent possible under law, the person who associated CC0 with this work has waived
Delphi组件编程 我用TImage作了一个
Edit
,即:把TImage变成T
Edit
主题:使文本框具有背景图,还有特效文字 说明:我用TImage作了一个
Edit
,即:把TImage变成T
Edit
, 这样一来,
Edit
也能变成透明的。 在文本框的下面是一个新的T
Edit
,可以在其
中
输入文字,这个新的文本框是用图像控件制作的。 核心技术:
Edit
特效,
Edit
Bmp(),SetBounds(),LoadFromFile(),mbleft=button Google搜索:T
Edit
with background graphic, Background-image of T
Edit
Delphi
5,386
社区成员
262,729
社区内容
发帖
与我相关
我的任务
Delphi
Delphi 开发及应用
复制链接
扫一扫
分享
社区描述
Delphi 开发及应用
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章