|  | 
| 
 | 
| Post Reply   | 
| Author | |
| GRLEX   Groupie     Joined: 17 February 2009 Location: Ukraine Status: Offline Points: 27 |  Topic: [CLOSED] Set dropdown style for report items Posted: 26 September 2011 at 5:45am | 
| 
   
Hi, i have report control with my own items in it. Here my class for items enum MyStatus { 	stString1, 	stString2 };//------------------ class CMyItemClass : public CXTPReportRecordItem { public: 	CMyItemClass(MyStatus  status) { 		m_status = status; 		GetEditOptions(NULL)->AddConstraint(_T("Some string 1"),	stString1); 		GetEditOptions(NULL)->AddConstraint(_T("Some string 2"),	stString2); 			...... 		GetEditOptions(NULL)->m_bConstraintEdit = TRUE; 		GetEditOptions(NULL)->AddComboButton(1); 	} 	CString GetCaption(CXTPReportColumn* /*pColumn*/) { 		CXTPReportRecordItemConstraint * pConstraint = GetEditOptions(NULL)->FindConstraint(m_status); 		if (pConstraint == NULL) { 			return L"Default"; 		} 		return pConstraint->m_strConstraint; 	} 	void SetCaption(LPCTSTR sCaption) { 		CXTPReportRecordItemConstraint * pConstraint = GetEditOptions(NULL)->FindConstraint(sCaption); 		if (pConstraint == NULL) { 			m_status = (MyStatus)0; 		} else { 			m_status = (MyStatus)pConstraint->m_dwData; 		} 	} 	void OnConstraintChanged(XTP_REPORTRECORDITEM_ARGS* /*pItemArgs*/, CXTPReportRecordItemConstraint * pConstraint) { 		m_status = (MyStatus)pConstraint->m_dwData; 	} 	MyStatus  GetValue() { 		return m_status; 	} protected: 	MyStatus  m_status; };//--------------------------------------------------------- I need to do dropdown style for my item like in standart combobox CBS_DROPDOWNLIST ( selection in dropdown changes when mouse move) How i can do this? Thanks. | |
|  | |
| ABuenger   Newbie     Joined: 02 February 2006 Status: Offline Points: 1075 |  Posted: 26 September 2011 at 10:43am | 
| 
   Hello, please notice our support policy and open a support ticket for further help. http://forum.codejock.com/forum_posts.asp?TID=14125&FID=125&PR=3&title=notice-codejock-support-policy Thanks Andre | |
| 
     Codejock support
     | |
|  | |
| 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 |