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
URL: http://forum.codejock.com/forum_posts.asp?TID=23823
Printed Date: 26 April 2024 at 12:13pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


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

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

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net