![]() |
RemoveConstraint ??? |
Post Reply ![]() |
Author | |
adico ![]() Groupie ![]() ![]() Joined: 20 April 2006 Location: United States Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() Posted: 21 July 2006 at 3:00pm |
I have the following:
CXTPReportColumn* m_pColumn; m_pColumn->GetEditOptions()->AddConstraint(strTemp, (DWORD)pTemp); I want to be able to remove all the constraints & re-populate m_pColumn everytime the user selects a constraint from the list. How can I delete all the constraints from m_pColumn? Thanks in advance |
|
I am not my memories...I am my dreams!
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
try something like m_pColumn->GetEditOptions()->GetConstraints()->RemoveAll();
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
adico ![]() Groupie ![]() ![]() Joined: 20 April 2006 Location: United States Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
Oleg,
Thanks for your prompt reply. I've got one more "quick" question. How do I get the index of the Constraint selected by the user. In other words, inside my m_pColumn I have 5 Items. I would like to get the index of the Item the user selects. |
|
I am not my memories...I am my dreams!
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
You can override void CXTPReportRecordItem::OnConstraintChanged(XTP_REPORTRECORDITEM_ARGS* pItemArgs, CXTPReportRecordItemConstraint* pConstraint)
to catch event when constraint changed.
and call pConstrint->GetIndex()
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |