Report Control Expand Button |
Post Reply |
Author | |
brianh
Groupie Joined: 30 April 2004 Location: United Kingdom Status: Offline Points: 83 |
Post Options
Thanks(0)
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. Edited by brianh |
|
brianh
Groupie Joined: 30 April 2004 Location: United Kingdom Status: Offline Points: 83 |
Post Options
Thanks(0)
|
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. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |