Print Page | Close Window

Losing ComboBox Button After SetIconIndex

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
Printed Date: 03 April 2020 at 7:22am

Topic: Losing ComboBox Button After SetIconIndex
Posted By: jslmsca
Subject: Losing ComboBox Button After SetIconIndex
Date Posted: 28 February 2019 at 8:05pm

I've derived my own RecordItem from CXTPReportRecordItemText.  I create the ReportControl and populate the rows.  I call AddComboButton(TRUE) on each item's EditOptions.  If I set an icon index at this point, the icon is displayed along with the combo button.

However, I do not want the icons to be displayed until an active action by the user on my dialog.  I've trapped the click notification through XTP_REPORTRECORDITEM_CLICKARGS at which point I call RecordItem->SetIconIndex.  The icon is displayed but I've lost the combo button.

I've tried redrawing the control and calling AddComboButton again in various places but without success.  I'm at a loss as to what might be happening.  The parent dialog is successfully receiving the notification XTP_NM_REPORT_VALUECHANGED and the underlying content seems fine.

Any ideas are appreciated.  Thanks.

Print Page | Close Window