[简单送分题]!向 ListBox 增加项目与选择问题! (20分)

I

inbreak

Unregistered / Unconfirmed
GUEST, unregistred user!
1.当我向 listbox 增加目时,当 listbox 满后如果使 listbox 跟随我的项目的增
加向下移呢?
2.如果通过点击按钮而 listbox 自动选中我的指定项目(如:listbox.items[200])
,且,listbox 自动向下移动显示我所指定的项目呢?
 
很难吗??可加分!!!!!!!!!!!!!!!!!
 
是listbox 还是listview??
 
增加后让itemindex:=listbox.count-1
 
listbox.itemindex:=200
 
to lcl_003:
你的方法我试过。。不可以。
 
lcl_003 的方法可以的。前提是你的ListBox.Items.Count>=200;
 
1、
listbox1.AddItem('abc',listbox1);
listbox1.SetFocus;
listbox1.ItemIndex:=listbox1.Count-1;
2、
listbox1.SetFocus;
listbox1.ItemIndex:=输入的参数;
 
为什么我不行呢?
 
你是用的listbox吗!
如果是应该没有问题,如果程序不大你给我发过来看看!
 
up delphi_newuser
 
to delphi_newuser:
是的。我是用的 faltlistbox 也就是那个平面控件!!!
不知道是不是那个平面控件不支持呢??还是~~~~~。。。
我现在在网吧。无法打代码。明天回公司上网再来吧。。多谢您的关心,谢谢~!
 
多人接受答案了。
 
接受答案了.
 
顶部