[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

combo box

Posted on 1998-09-18
2
Medium Priority
?
213 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 150 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
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…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

873 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