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

BUGS: Several bugs in report control

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: BUGS: Several bugs in report control
    Posted: 16 November 2011 at 9:29am
Hi I found several bugs Confused in a simple report control using toolkit 15.1.3 that I set up in this way:

void CReportConditionDlg::InitializeReport() {
Report_.ShowHeader(FALSE);
Report_.AllowEdit(TRUE);

Report_.SelectionEnable(FALSE);
Report_.FocusSubItems(TRUE);
Report_.GetToolTipContext()->SetStyle(xtpToolTipResource);

Report_.GetPaintManager()->m_bUseAlternativeBackground=TRUE;
Report_.GetPaintManager()->m_clrAlternativeBackground=RGB(236,239,244);
Report_.GetPaintManager()->SetGridStyle(TRUE, xtpReportGridNoLines);
Report_.GetPaintManager()->SetColumnStyle(xtpReportColumnResource);

CXTPReportColumn* Column=Report_.AddColumn(new CXTPReportColumn(0, L"", L"Feld", 150));
Column->GetEditOptions()->AddConstraint(L"Analysetyp", 0);
Column->GetEditOptions()->AddConstraint(L"Artikel", 1);
Column->GetEditOptions()->AddConstraint(L"Produktionslinie", 2);
Column->GetEditOptions()->AddConstraint(L"Silo", 3);
Column->GetEditOptions()->AddComboButton(TRUE);
Column->GetEditOptions()->m_bConstraintEdit=TRUE;

Column=Report_.AddColumn(new CXTPReportColumn(1, L"", L"Operator", 80));
Column->GetEditOptions()->m_bAllowEdit=FALSE;

Column=Report_.AddColumn(new CXTPReportColumn(2, L"", L"Wert", 200));
Column->GetEditOptions()->m_bConstraintEdit=TRUE;

Column=Report_.AddColumn(new CXTPReportColumn(3, L"", L"Verknüpfung", 200));
Column->GetEditOptions()->AddConstraint(L"<keine weitere Bedingung>", 0);
Column->GetEditOptions()->AddConstraint(L"UND", 1);
Column->GetEditOptions()->AddConstraint(L"ODER", 2);
Column->GetEditOptions()->AddComboButton(TRUE);
Column->GetEditOptions()->m_bConstraintEdit=TRUE;

Report_.AddRecord(new CCompoundReportRecord());
Report_.AddRecord(new CCompoundReportRecord());
Report_.AddRecord(new CCompoundReportRecord());
Report_.AddRecord(new CCompoundReportRecord());
Report_.AddRecord(new CCompoundReportRecord());

Report_.Populate();
}


The initial report control can be seen here:
When clicking into an item with content that is larger than the column width, the content is moved to the left leaving some artefacts on top of the combo button:

Now when selecting the content using the mouse I'm able to delete the whole content by pressing the DEL key. BACKSPACE and all other keys are disabled:

Normally this should be impossible because I turned on constraint edit only (as described in online  documentation) by calling CXTPReportColumn::GetEditOptions()->m_bConstraintEdit=TRUE and an empty selection is not contained in the list of constraints.

So it's definitely a bug!
Could this be fixed ASAP?
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
Marco1 View Drop Down
Senior Member
Senior Member


Joined: 16 January 2004
Location: Germany
Status: Offline
Points: 251
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marco1 Quote  Post ReplyReply Direct Link To This Post Posted: 16 November 2011 at 4:04pm
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 18 November 2011 at 1:50pm
Hi,

we are currently finializing 15.2.0. These bugs will be fixed shortly after the release. I'll look into the DEL key issue ASAP.

Andre

Codejock support
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.172 seconds.