标题:求助,光标焦点问题
只看楼主
li8385
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2013-12-17
结帖率:0
已结贴  问题点数:20 回复次数:2 
求助,光标焦点问题
procedure TForm1.EdtHeightClick(Sender: TObject);
begin
   EdtHeight.setfocus;
end;

然后为什么不行,无法获得焦点?
procedure TForm1.Button0Click(Sender: TObject);
begin

  if EdtHeight.Focused then
  begin
    EdtHeight.Text:= EdtHeight.Text+'0';
    EdtHeight.SelStart := Length(EdtHeight.Text);
  end;
   if EdtWeight.Focused then
   begin
  EdtWeight.Text:= EdtWeight.Text+'0';
  EdtWeight.SelStart := Length(EdtWeight.Text);
   end;
end;
搜索更多相关主题的帖子: procedure 
2013-12-17 16:55
wp231957
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:神界
等 级:版主
威 望:422
帖 子:13681
专家分:53296
注 册:2012-10-18
得分:10 
gz

DO IT YOURSELF !
2013-12-20 08:35
volte
Rank: 10Rank: 10Rank: 10
等 级:贵宾
威 望:69
帖 子:1167
专家分:1316
注 册:2004-12-19
得分:10 
鼠标点击光标都到按钮上了!怎么触发

大家都是朋友,有空就来坐坐!
2013-12-20 13:19



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-425315-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014221 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved