private void DisplayLexGloss(IVwEnv vwenv, int hvo, int ws, int choiceIndex) { int hvoNo = vwenv.DataAccess.get_ObjectProp(hvo, ktagSbMorphGloss); SetColor(vwenv, m_choices.LabelRGBFor(choiceIndex)); if (m_fIconsForAnalysisChoices) { // This line does not have one, but add some white space to line things up. vwenv.set_IntProperty((int)FwTextPropType.ktptLeadingIndent, (int)FwTextPropVar.ktpvMilliPoint, m_dxmpArrowPicWidth + kmpIconMargin); } if (hvoNo == 0) { // One of these is enough, the regeneration will redo an outer object and get // all the alternatives. vwenv.NoteDependency(new int[] { hvo }, new int[] { ktagSbMorphGloss }, 1); vwenv.AddProp(ktagMissingMorphGloss, this, kfragMissingMorphGloss); } else { vwenv.AddObjProp(ktagSbMorphGloss, this, kfragNamedObjectNameChoices + choiceIndex); } }