faq14.htm
来自「C++builder学习资料C++builder」· HTM 代码 · 共 35 行
HTM
35 行
<HTML>
<HEAD>
<TITLE>Create a ComboBox that doesn't allow users to type into the EditBox.</TITLE>
<META NAME="Author" CONTENT="Harold Howe">
</HEAD>
<BODY BGCOLOR="WHITE">
<CENTER>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="640">
<TR>
<TD>
<H3>
Create a ComboBox that doesn't allow users to type into the EditBox.
</H3>
<P>
Set the <TT>Style</TT> property to <TT>csDropDownList</TT>.
This prevents the user from entering a text string. You may need to
initialize the <TT>ItemIndex</TT> property to select the correct item
during bootup. See the FAQ <A HREF="faq13.htm">Select an item in a ListBox or ComboBox from code</A> for
more information.
</P>
</TD> </TR>
</TABLE>
</CENTER>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?