Within one of our MDL applications, we have a dialog containing a combobox that has a multicolumn list model.
Selecting an item from the list, the (readonly) textedit only shows the first column of the selected item.
Is there a way to include also the other columns in the textedit?
Thanks,
Robert Kock
Robert Kock said:we have a dialog containing a combobox that has a multicolumn list model
Post your resource definition of the ComboBox. For example...
DItem_ComboBoxRsc COMBOBOXID_LevelName = { NOCMD, LCMD, NOSYNONYM, NOHELP, MHELPTOPIC, HOOK_CBO_LevelName, NOARG, 36, "", "", "", "", NOMASK, 0, 12, 4, 0, 0, COMBOATTR_READONLY | COMBOATTR_DISPLAYALLCOLUMNS | COMBOATTR_FONTBYCOLUMN | COMBOATTR_FULLWIDTH, TXT_LevelPrompt, "g_vars.prefs.levelName", { { 14*XC, 36, ALIGN_LEFT, TXT_LevelName } }
Regards, Jon Summers LA Solutions
This is the contents of the .r file:
DItem_ComboBoxRsc COMBOBOXID_TextFont ={ NOCMD, LCMD, NOSYNONYM, NOHELP, LHELP, NOHOOK, NOARG, 100, "", "", "", "", NOMASK, 0, 15, 5, 35*XC, 0, COMBOATTR_READONLY, "", "", { { 5*XC, 4, 0, ""}, {25*XC, 25, 0, ""}, }
};
Robert Kock said:COMBOATTR_READONLY
You could try some of the other COMBOATTR_ values (#defined in dlogbox.r.h), such as COMBOATTR_AUTOADDNEWSTRINGS. I don't see a value for edit control.
COMBOATTR_
#defined
dlogbox.r.h
COMBOATTR_AUTOADDNEWSTRINGS
Answer Verified By: Robert Hook
You put me on the right track: the option to use is COMBOATTR_DISPLAYALLCOLUMNS