模拟列表框 [英] simulate listbox

查看:43
本文介绍了模拟列表框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因为我无法控制列表框中的滚动条...


我需要从文本框和三个标签控件创建一个列表框。一个

标签将保存可滚动的文本信息,而另外两个将代表

滚动条和滑块。这样做的全部原因是我可以为触摸屏环境添加合适的图形。我想带标签

b / c他们不会导致我的文本框失去焦点/验证当他们被点击时...他们是没有窗户的。 。


无论如何,我已经在网上搜索了一个可滚动的无窗窗口

控件的例子,但没有找到。如果有人有起点(网址等)或

建议,我很乐意听到他们的意见。否则,我会从头开始。


tia,


史蒂夫

since i have no control over the scrollbars in a listbox...

i need to create a listbox from a textbox and three label controls. one
label will hold scrollable text info while the other two will represent the
scrollbar and slider. the whole reason for this is so that i can add
suitable graphics for a touch-screen environment. i want to go with labels
b/c they don''t cause my textbox to loose focus/validate when they are
clicked...they are "windowless".

anyway, i''ve scowered the net for an example of scrollable windowless
controls but have found none. if anyone has a starting point (url, etc.) or
suggestions, i''d love to hear them. else, i''ll start from scratch.

tia,

steve

推荐答案

*" steve" < a@b.com> scripsit:
* "steve" <a@b.com> scripsit:
因为我无法控制列表框中的滚动条...
since i have no control over the scrollbars in a listbox...




你到底需要什么?


-

Herfried K. Wagner [MVP]

< URL:http://dotnet.mvps.org/>



What exactly do you need?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


顶部的文本框允许输入。下面有一个标签列表的标签。

标签位于右侧,代表滚动条。

上的另一个标签滚动条标签代表一个滚动滚动

列表项标签内容的滑块。


表示''它...基本上模仿了一个组合框。
textbox on top that allows input. a label below having a list of items. a
label at the right hand side representing a scrollbar. another label over
the scrollbar label representing a slider that scrolls the contents of the
list items label.

that''s it...basically mimics a combobox.


*steve < a@b.com> scripsit:
* "steve" <a@b.com> scripsit:
顶部的文本框,允许输入。下面有一个标签列表的标签。右侧的
标签代表滚动条。滚动条标签上的另一个标签代表一个滑动滚动
列表项标签内容的滑块。

它就是......它基本上模仿了一个组合框。
textbox on top that allows input. a label below having a list of items. a
label at the right hand side representing a scrollbar. another label over
the scrollbar label representing a slider that scrolls the contents of the
list items label.

that''s it...basically mimics a combobox.




当然可以,但为什么组合框不能满足您的需求?


-

Herfried K. Wagner [MVP]

< URL:http://dotnet.mvps.org/>



Sure, but why doesn''t the combobox fit your needs?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


这篇关于模拟列表框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆