• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 263
  • Last Modified:

Dropdown Listbox

I have designed a dialog and I also needed a dropdown listbox. I inserted the elements in the dialog editor in the data section. Everything works fine except for the fact that the dropdown part is only large enough to show one element at the same time. Why ? I only inserted three elements and want the dropdown part of the listbox to show them all at the same time. Can anyone help ?
0
_punisher
Asked:
_punisher
  • 6
  • 4
  • 2
1 Solution
 
Answers2000Commented:
Answwer in my comment, takes time for me to type...
0
 
Answers2000Commented:
The drop down area of the combo box is separately size from the main area.

To adjust the size of the drop down area (MS Dev Studio for VC5 instructions):
1. Bring up the dialog in your resource editor
2. Locate the combo box on the dialog
3. Mouse click on downarrow which is part of the combo box.  You will get a "shadowed" rectangle larger than the actual control
4. Drag this out to the size you want. (there's a solid blue dot on the middle/bottom of the rectangle, mouse drag on this)

0
 
_punisherAuthor Commented:
Ok ... that works ! But how can I do it at runtime ? I want to insert another item that is not there on startup. But then I have to scroll again.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
_punisherAuthor Commented:
You do not seem to know the answer Answer2000 ...
0
 
_punisherAuthor Commented:
Can anyone else help ?
0
 
Answers2000Commented:
Well I've only just got your rejection about 30seconds ago
0
 
jrmcgCommented:
If you do what Answers2000 said but make the size of the rectangle going down alot longer, say maybe the size of your dialog, it will increase the length of the drop down list to only the size required to show all of the entries.  Of course, your setable size inside the editor is going to be restricted to the bottom of the dialog box.

It does "truncate" the size of the drop list box size though so you won't get a bunch of extra space.

If you like this answer, I think Answers2000 still deserves the credit.

Hope it's what you were looking for.

J.R.
0
 
_punisherAuthor Commented:
Ok ... everything works fine now. Sorry that I rejected your answer Answer2000. Please lock the question again so I can give you the points.
0
 
_punisherAuthor Commented:
Does nobody want the points ?
Answer2000 ???
Anyone else ?

0
 
jrmcgCommented:
I believe Answers2000 has been on "vacation" and away from EE for a couple weeks.  You might want to give him a couple more days, or post a question with 0 points and address it to him specifically to remind him of the points.

J.R.
0
 
_punisherAuthor Commented:
Ok ... I am going to wait until he has locked the question.
0
 
Answers2000Commented:
Hi punisher,

Yeh I've been away, thanks for waiting
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 6
  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now