Print Page | Close Window

Report Control Expand Button

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1530
Printed Date: 21 December 2024 at 10:12pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Report Control Expand Button
Posted By: brianh
Subject: Report Control Expand Button
Date Posted: 14 December 2004 at 10:47am

Hi, I have configured a cell in a report control to have an expand button, the only notification message I can see that might be for this is XTP_NM_REPORT_SHOWFIELDCHOOSER but when the button is clicked this notification message is not sent.  After a quick search of the source code it appears that this message is never sent, am I missing something or is there some other way to know when the button is clicked?

Also I would like to be able to choose multiple items from a dialog by clicking the expand button and then show a summary in the grid cell, but I don't want the user to be able to edit the summary shown in the cell directly.  Is this possible, if you make the cell non-editable then you can't see the expand button?

Thanks.




Replies:
Posted By: brianh
Date Posted: 16 December 2004 at 4:39am

Never mind, I've worked it out. It sends the same notification message as the combo button, XTP_NM_REPORT_INPLACEBUTTONDOWN.

And I can stop the text being edited by setting the cell to be a constrained edit and then setting my summary string as the one and only constraint, again like the combo box, i.e.

GetEditOptions(NULL)->m_bConstraintEdit = TRUE;

GetEditOptions(NULL)->AddConstraint( strSummary );

This means the cell can be editable so the button is active but the text cant be changed directly - as required.




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