如何判断EDIT是否重新获得焦点?? if ActiveControl is edit1 thenshowmessage('就是'); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if edit1.Focused=True then begin//doend; if (ActiveControl = edit1) then showmessage('sdfds'); if edit1.Focused=True thenbegin //do you want end; if (ActiveControl = edit1) then showmessage('sdfds'); if (ActiveControl = edit1) then showmessage('sdfds'); 前两位说的都对。讨论一下,如果用Actionlist把Edit的动作转给了其他控件,那么用if ActiveControl is edit1 thenshowmessage('就是');是不是不对了,我只是这么想,请指教。 if (ActiveControl = edit1) then showmessage('sdfds'); edit1.foucusd又学一招,activecontrol. 好像sender as Tedit也可以吧! if edit1.Focusedthen // dosomethingelse edit1.setFocus; 请问大家我这样对Synchronize理解对吗? 请教个问题! 如何将查询的数据导出到Excel中? 如何用delphi写存储过程,用什么控件? 如何才能过滤掉网页中的Flash,或使停止 如何显示软键盘 Delphi 5.0 有没有四舍五入的函数? 怎么向另一个应用程序发点击鼠标的消息 客户端的RECV(..)的Tsocket参数怎么设置的!!! 关于Query的问题 菜鸟提问,快来抢分 急问:奇怪,为何不能动态设置DBCombobox组件的Items值?
begin
//do
end;
showmessage('sdfds');
begin
//do you want
end;
showmessage('sdfds');
showmessage('sdfds');
那么用
if ActiveControl is edit1 then
showmessage('就是');是不是不对了,我只是这么想,请指教。
showmessage('sdfds');
又学一招,activecontrol.
then // dosomething
else
edit1.setFocus;