Solved

combo box

Posted on 1998-09-18
2
208 Views
Last Modified: 2012-05-04
i use a combobox contril in a dialog form with constant values and i will prevent the user to write any value in combobox also just readable, what can i do.
0
Comment
Question by:saidi
2 Comments
 
LVL 2

Accepted Solution

by:
gysbert1 earned 50 total points
ID: 1173087
Change the Style Property from csDropDown to csDropDownList (in object inspector)

Easy as that !



// From the C++ builder help

Value                    Meaning

csDropDown      Creates a drop-down list with an edit box for manually entered text. All
                            items are strings of the same height.
csSimple                    Creates an edit box with a fixed list (list box) underneath. The length of
                            the list is determined by the Height of the combo box.
csDropDownList      Creates a drop-down list with no edit box; the user cannot enter text                            
                            manually. All items are strings of the same height.
csOwnerDrawFixedCreates an owner-draw drop-down list with an edit box for manually
                             entered text. Each item in the list is the height specified by the            
                             ItemHeight property.

csOwnerDrawVariable      Creates an owner-draw drop-down list with an edit box for manually entered text. List items can have varying heights.

0
 

Expert Comment

by:juerg
ID: 1173088
An easyer way
In resource click on your comboBox,
Click right button and then  properties
there goto Style and click Type: = Drop List
Thats all
Juerg
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now