Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - RemoveConstraint ???
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

RemoveConstraint ???

 Post Reply Post Reply
Author
Message
adico View Drop Down
Groupie
Groupie
Avatar

Joined: 20 April 2006
Location: United States
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote adico Quote  Post ReplyReply Direct Link To This Post Topic: RemoveConstraint ???
    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!
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 21 July 2006 at 3:58pm
Hi,
 
try something like m_pColumn->GetEditOptions()->GetConstraints()->RemoveAll();
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
adico View Drop Down
Groupie
Groupie
Avatar

Joined: 20 April 2006
Location: United States
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote adico Quote  Post ReplyReply Direct Link To This Post Posted: 21 July 2006 at 4:57pm
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!
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 21 July 2006 at 5:01pm
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
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.172 seconds.