Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Report Control Expand Button
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Report Control Expand Button

 Post Reply Post Reply
Author
Message
brianh View Drop Down
Groupie
Groupie


Joined: 30 April 2004
Location: United Kingdom
Status: Offline
Points: 83
Post Options Post Options   Thanks (0) Thanks(0)   Quote brianh Quote  Post ReplyReply Direct Link To This Post Topic: Report Control Expand Button
    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
Back to Top
brianh View Drop Down
Groupie
Groupie


Joined: 30 April 2004
Location: United Kingdom
Status: Offline
Points: 83
Post Options Post Options   Thanks (0) Thanks(0)   Quote brianh Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.