是否可以在列表框中添加复选框? [英] Is it possible to add checkboxes inside a list box?

查看:102
本文介绍了是否可以在列表框中添加复选框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


是否可以在列表框中添加复选框?


向下滚动项目会向下滚动复选框好吧。

我不能使用编辑器直接在列表框内添加复选框。 :(

Hello,

Is it possible to add checkboxes inside a list box?

Scrolling down the items will scroll down the checkboxes as well.
I can''t add directly the checkbox inside the list box using the editor. :(

推荐答案

欢迎使用字节!


无法按照建议的方式自定义控件;与所有这些控件一样,列表框控件无法更改其列表组件之一以显示其中的复选框控件(或任何其他组件)。换句话说,控件通常不在控件内嵌套(除非特别为此目的而构建,例如标签控件)。


你想要做什么?


-Stewart
Hi, and Welcome to Bytes!

It is not possible to customise controls in the way you suggest; in common with all such controls, a listbox control has no facilities to change one of its list components to display a checkbox control (or any other component) within it. In other words, controls do not in general nest within controls (except where especially built for that purpose, such as a tab control).

What is it you are trying to do?

-Stewart



您好。无法以这种方式自定义控件;与所有此类控件一样,列表框控件无法更改一个控件其列表组件中显示一个复选框控件(或任何其他组件)。换句话说,控件通常不在控件中嵌套(除非特别为此目的而构建,例如选项卡控件)。
<无线电通信/>
你想做什么?


-Stewart
Hi. It is not possible to customise controls in this way; in common with all such controls, a listbox control has no facilities to change one of its list components to display a checkbox control (or any other component) within it. In other words, controls do not in general nest within controls (except where especially built for that purpose, such as a tab control).

What is it you are trying to do?

-Stewart



感谢您的回复,斯图尔特。


这对我来说是个坏消息。

但我知道还有另一种方式。


我真正想做的是显示每个项目带复选框的项目列表。

如果有很多项目,则需要滚动整个屏幕。

我只想要带有复选框的项目滚动。

这样,表格的大小就会保持。


有没有这样做的方法?

Thanks for your reply, Stewart.

That''s a bad news for me.
But I know there''s another way.

What I really wanna do is to display the list of items with checkbox per item.
If there are many items, the whole screen would need to be scrolled.

I just want the items with checkbox to be scrolled.
That way, the size of the form is maintained.

Is there a way to do this?


嗨。在某种程度上,可以通过将自定义连续表单设计为由另一个表单上的自定义按钮触发的弹出窗口来模拟列表框的效果。然后,您可以根据需要为每行使用文本框,复选框等。自定义表单的记录源将是您用来填充列表框的查询。


您将滚动所有记录,而不仅仅是那些带有复选框的记录(我认为无法选择性地滚动部分表单)。


我使用组合框存储自定义表单选择,按钮覆盖在组合框上常用箭头的顶部以触发自定义表单。附带的截图(来自风险评估应用程序)显示组合框/按钮组合(左侧)和弹出窗体(显示的Severity形式)。


这只是一种方式制作定制表格;毫无疑问还有很多其他的。


-Stewart





Hi. To some extent it is possible to mimic the effects of a listbox by designing a custom continuous form as a pop-up triggered by a custom button on another form. You can then use textboxes, checkboxes and so on as you want for each row. The recordsource for the custom form would be a query such as you would use to fill the listbox.

You would be scrolling all records, not just those with checkboxes (I can think of no way to selectively scroll part of a form only).

I use combo boxes to store the custom form selection, with a button overlaid on top of the usual arrow on the combo box to trigger a custom form. Screenshot attached (from a risk assessment application) shows the combobox/button combination (on left) and the pop-up form (the form called Severity shown).

This is just one way to produce custom forms; no doubt there are many others.

-Stewart
附加图像
ScreenHunter_24.jpg (36.6 KB,1602 views)
Attached Images
ScreenHunter_24.jpg (36.6 KB, 1602 views)


这篇关于是否可以在列表框中添加复选框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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