Crash on clicking field with combobox |
Post Reply |
Author | |
ericchubb
Groupie Joined: 31 May 2010 Location: Ireland Status: Offline Points: 15 |
Post Options
Thanks(0)
Posted: 25 March 2020 at 4:07pm |
Hi,
I have a simple report control and i want a couple of the columns to use combo boxes. I've initialised the column with the combobox as so: pColumn->GetEditOptions()->AddConstraint(_T("SHOW"), 0); pColumn->GetEditOptions()->AddConstraint(_T("HIDE"), 0); pColumn->GetEditOptions()->m_bConstraintEdit = TRUE; pColumn->GetEditOptions()->m_bAllowEdit = TRUE; CXTPReportInplaceButton * pButton = pColumn->GetEditOptions()->AddComboButton(); pColumn->SetEditable(TRUE); pColumn->SetAutoSize(TRUE); When actually adding records, i do it like so: CXTPReportRecordItem* pItem = AddItem(new CKeywordsSettingsListRecordItem(_T(""))); pItem->HasCheckbox(TRUE); pItem->SetChecked(bEnabled); AddItem(new CXTPReportRecordItemText); //this is the column with the combobox AddItem(new CKeywordsSettingsListRecordItem(szExpression,false)); AddItem(new CKeywordsSettingsListRecordItem(szAttributeName,false)); AddItem(new CKeywordsSettingsListRecordItem(szAttributeValue,false)); AddItem(new CKeywordsSettingsListRecordItem(szID,false)); AddItem(new CKeywordsSettingsListRecordItem(szComment,false)); pItem = AddItem(new CKeywordsSettingsListRecordItem(szExt,true)); However, when i go to click on the field with the combo box, it crashes The crash seems to take place in CXTPReportPaintManager::DrawInplaceButton and there is a NULL pointer called m_pCombo I've no idea what the problem could be. Any help would be much appreciated! Thanks |
|
agontarenko
Admin Group Joined: 25 March 2016 Status: Offline Points: 299 |
Post Options
Thanks(0)
|
Hello, Unfortunately it is not clear what exactly is going wrong. Can you please provide more detailed information. If it cannot be re-produced in any of our sample applications provided I would appreciate you sending a sample application so that we could debug it. Regards, Artem Gontarenko
|
|
agontarenko
Admin Group Joined: 25 March 2016 Status: Offline Points: 299 |
Post Options
Thanks(0)
|
Hello,
I am going to close this issue for now since I have not heard back from you. Please let me know if we need to re-open this issue at a later date. (0001213) Regards, Artem Gontarenko |
|
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 |