Print Page | Close Window

addcombobutton does not work

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=24261
Printed Date: 20 September 2024 at 9:03pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: addcombobutton does not work
Posted By: yangyanhui
Subject: addcombobutton does not work
Date Posted: 25 January 2022 at 9:55pm
I have a xtpreportctrl

CXTPReportRecordItem* pItem = pRecord->GetItem(CRuleRecord::colVoiceID);
pItem->GetEditOptions(NULL)->m_bAllowEdit = true;
pItem->GetEditOptions(NULL)->AddConstraint(_T("0"));
pItem->GetEditOptions(NULL)->AddConstraint(_T("1"));
pItem->GetEditOptions(NULL)->AddConstraint(_T("2"));
pItem->GetEditOptions(NULL)->AddConstraint(_T("3"));
pItem->GetEditOptions(NULL)->AddConstraint(_T("4"));
pItem->GetEditOptions(NULL)->AddConstraint(_T("5"));
pItem->GetEditOptions(NULL)->AddConstraint(_T("6"));
pItem->GetEditOptions(NULL)->AddComboButton(TRUE);
using this code,I want to show a combobox when i click in a certain cell,
the code runs without any error,but the combobox does not show?
what do I miss?
thanks
liuyi



Replies:
Posted By: cpede
Date Posted: 26 January 2022 at 12:55am
I'm doing this on the column

CXTPReportColumn* pCol = new CXTPReportColumn(1,_T("Text"),60, TRUE, 0);
if (pCol==NULL) return FALSE;
pCol->GetEditOptions()->m_bConstraintEdit = FALSE;
pCol->GetEditOptions()->m_bAllowEdit = TRUE;
pCol->GetEditOptions()->m_bExpandOnSelect = TRUE;
pCol->GetEditOptions()->AddComboButton(TRUE);

-cpede



-------------
Product: Xtreme ToolkitPro (22.1.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)


Posted By: yangyanhui
Date Posted: 26 January 2022 at 1:44am
addcombobutton cannot work in certain cell?I need to use it in several rows



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net