Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - combo box in report control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

combo box in report control

 Post Reply Post Reply
Author
Message
vjedlicka View Drop Down
Senior Member
Senior Member


Joined: 04 September 2007
Status: Offline
Points: 122
Post Options Post Options   Thanks (0) Thanks(0)   Quote vjedlicka Quote  Post ReplyReply Direct Link To This Post Topic: combo box in report control
    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
Back to Top
GRLEX View Drop Down
Groupie
Groupie
Avatar

Joined: 17 February 2009
Location: Ukraine
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote GRLEX Quote  Post ReplyReply Direct Link To This Post 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.
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.156 seconds.