Print Page | Close Window

combo box in report control

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=22240
Printed Date: 08 May 2024 at 2:47pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: combo box in report control
Posted By: vjedlicka
Subject: combo box in report control
Date Posted: 20 March 2014 at 3:51am
Is it possible to show a combo box in the report control?
Which classes would I need to use?


-------------
Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11



Replies:
Posted By: GRLEX
Date Posted: 10 April 2014 at 11:40am
Hi, to use combobox in your report control you nedd add combo button it report item and then add list of values inside an item.
for example:
CXTPReportRecordItem * pNewItem = NULL;
pNewItem = new CXTPReportRecordItemText;
pNewItem->GetEditOptions(NULL)->AddComboButton(1);
pNewItem->GetEditOptions(NULL)->AddConstraint(L"Combo value 0", 0);
pNewItem->GetEditOptions(NULL)->AddConstraint(L"Combo value 1", 1);
...
pNewItem->GetEditOptions(NULL)->AddConstraint(L"Combo value n", n);

where n is count of your combo items.



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