Link to home
Start Free TrialLog in
Avatar of jeremiahscott
jeremiahscott

asked on

How to add data to combox from resource editor.

hello-

when i right click on my combo box from the resource editor and go to the properties under data is says 'enter listbox items'. when i do this nothing shows up in the combobox when i run the program. can data be entered into the combobox this way?


thanks - js
ASKER CERTIFIED SOLUTION
Avatar of GloriousRain
GloriousRain

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GloriousRain
GloriousRain

"right click on your combo box from the resource editor and go to the properties under data is says
'enter listbox items'."->Put your data then click on the down button of your combo box->enlarge the vertical size of your combo box's pulldown list
Tip:
When adding a combo box control to the window, it is important that you click and drag the area for the control as large as you want the drop-down list to be. After you draw the control on the window, you can resize the width of the control as you would normally expect to do. To resize how far the list drops down you need to click the arrow, as if you were trying to trigger the drop-down list while the application was running.
...and remember, the "enter listbox items" does not work in in Win32- and ATL projects

Peter
ok, my first problem was that the dropdown part of the list was 0. i made that bigger now. i have entered in a string such as one,two,three. how do i get these on diffrent lines in the combobox now?
After each line press Ctrl+Enter
Avatar of jeremiahscott

ASKER

awesome, thanks! is there anyway to set the default value from the rs editor or do i have to do that programmactically?

"is there anyway to set the default value from the rs editor?"->Yes. Open the properties dialog for the combo box that you placed on the window. On the Data tab of the properties dialog, enter the values, using a Control+Enter key combination to add the second and third items...