在visual c ++中下拉菜单 [英] Drop down menu in visual c++

查看:109
本文介绍了在visual c ++中下拉菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在尝试创建一个drop在visual studio中的下载菜单(列表框?)。但是,这让我感到害怕,我无法解决两件事:

1.如何让它下拉而不是只是在项目之间轻弹 - 我点击侧面它会改变列表项但不会掉线在列表中方便访问

2.如何点击列表中的单个项目而不是任何事件...



非常感谢

Hi,

I''m trying create a drop down menu (listbox? ) in visual studio. However, it''s killing me I cant work out two things:
1. how to make it drop down instead of just flick between items - i click the side and it changes list item but doesnt drop down the list for easier access
2. how to make an event occur for clicking an individual item in the list instead of any...

Many thanks

推荐答案

在google上看到很多问题和答案,所以对于那些也有这个问题的人:



FlatStyle:工具箱中的弹出窗口。这也阻止了用户将其编辑为文本框





Seen many questions and no answers on google so to those who also have this issue:

FlatStyle: Popup in toolbox. This also stops the user being able to edit it as a text box


this->comboBox1->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
            this->comboBox1->FlatStyle = System::Windows::Forms::FlatStyle::Popup;


这篇关于在visual c ++中下拉菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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