MDL Multicolumn combobox

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

Parents
  • 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

Reply
  • 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

Children