ComboBox与输入法之间的问题! 事情是这样的,我在ComboBox控件里面加入了一些中文的items,ComboBox的属性设置:AutoComplete:=true; AutoDropDown:=true;问题是,当我在它上面打开输入法输入中文的时候下拉框挡住了输入法的选字窗口非常不方便,请问各位高手这个问题如何解决? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 将combobox1.imeName:=''就可以了。 将combobox1.imeName:=''就可以了。 难道真的没办法???我用DevExpress Quantum Grid 带的cxComboBox控件做的话在下拉框出现的情况下先关闭输入法,再打开输入法这样输入法的窗口就可以在下拉列表上面了,大家可以试试.在程序中能实现这个步骤吗?Quantum Grid控件在http://www.delphibox.com 有的下载,挺好用的哦 ^_^ wilowind(无风雪亦飘):光标跟 随去掉了也是不行的,我也试过的 下拉的时候imemode:=imDisable之后恢复 不用combobox,做一个listbox,autodropdown可以在combobox的OnEnter和OnExit里控制的。这样就不会挡住了。 to libra01(PASS&WORLD): 具体怎么搞?? 将combobox1.imeName:=''就可以了。 在onEnter事件里面加入combobox1.imeName:=''还是不行啊,输入法有关闭啊~~~!!! combobox.imeMode:=imclose;combobox.imename:=''; 最后还是用了libra01(PASS&WORLD)的方法,用ListBox代替了combobox自己的下拉框好像还可以充撑一下场面,呵呵,大家不妨试试有没有问题,欢迎大家继续讨论,看看有没有更好的方法,我10月份再结贴 ^_^unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Edit1: TEdit; ComboBox1: TComboBox; ListBox1: TListBox; procedure ComboBox1Enter(Sender: TObject); procedure FormCreate(Sender: TObject); procedure ComboBox1Exit(Sender: TObject); procedure ListBox1Click(Sender: TObject); procedure ComboBox1Change(Sender: TObject); private { Private declarations } public { Public declarations } end;var Form1: TForm1;implementation{$R *.dfm}procedure TForm1.FormCreate(Sender: TObject);beginlistbox1.Items:=combobox1.Items;end;procedure TForm1.ComboBox1Enter(Sender: TObject);beginif listbox1.Visible=false then begin listbox1.Visible:=true; endelse begin listbox1.Visible:=false; end;end;procedure TForm1.ComboBox1Exit(Sender: TObject);beginif listbox1.Focused then begin listbox1.Visible:=true; combobox1.DroppedDown:=false; endelse begin listbox1.Visible:=false; combobox1.DroppedDown:=false; end;end;procedure TForm1.ListBox1Click(Sender: TObject);begincombobox1.Text:=listbox1.Items[listbox1.ItemIndex];end;procedure TForm1.ComboBox1Change(Sender: TObject);beginlistbox1.ItemIndex:=combobox1.ItemIndex;end;end. delphi 编写winsock2程序如何使用AcceptEx 怎样用属性来调用过程 哈哈,日本两个王牌都飞了,哈哈 ADO动态连接数据库的问题? 怎样写权限设置,通过用户权限控制菜单??? 高分征集----关于各数据库用什么样的控件链接数据库 有做过门禁系统的近来谈谈 谈的热烈的话我还要加分的:) 大家都来看看 关于DELPHI 5的数据库BDE打包问题 关于corba在delphi中的实现 急!关于DataSet的Locate的怪问题,在线等待! 83% ---------------------> 100%
在下拉框出现的情况下先关闭输入法,再打开输入法
这样输入法的窗口就可以在下拉列表上面了,大家可以试试.在程序中能实现这个步骤吗?Quantum Grid控件在http://www.delphibox.com 有的下载,挺好用的哦 ^_^
combobox.imename:='';
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;type
TForm1 = class(TForm)
Edit1: TEdit;
ComboBox1: TComboBox;
ListBox1: TListBox;
procedure ComboBox1Enter(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure ComboBox1Exit(Sender: TObject);
procedure ListBox1Click(Sender: TObject);
procedure ComboBox1Change(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.FormCreate(Sender: TObject);
begin
listbox1.Items:=combobox1.Items;
end;procedure TForm1.ComboBox1Enter(Sender: TObject);
begin
if listbox1.Visible=false then
begin
listbox1.Visible:=true;
end
else
begin
listbox1.Visible:=false;
end;
end;procedure TForm1.ComboBox1Exit(Sender: TObject);
begin
if listbox1.Focused then
begin
listbox1.Visible:=true;
combobox1.DroppedDown:=false;
end
else
begin
listbox1.Visible:=false;
combobox1.DroppedDown:=false;
end;
end;procedure TForm1.ListBox1Click(Sender: TObject);
begin
combobox1.Text:=listbox1.Items[listbox1.ItemIndex];
end;procedure TForm1.ComboBox1Change(Sender: TObject);
begin
listbox1.ItemIndex:=combobox1.ItemIndex;
end;end.