Solved

combo box

Posted on 1998-09-18
2
205 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
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
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++.

763 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

10 Experts available now in Live!

Get 1:1 Help Now