Print Page | Close Window

BUGS: Several bugs 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=19190
Printed Date: 16 November 2024 at 4:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BUGS: Several bugs in report control
Posted By: mgampi
Subject: BUGS: Several bugs in report control
Date 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



Replies:
Posted By: Marco1
Date Posted: 16 November 2011 at 4:04pm
Perhaps this is related to this one:
http://forum.codejock.com/forum_posts.asp?TID=17289&KW=&PID=60952 - http://forum.codejock.com/forum_posts.asp?TID=17289&KW=&PID=60952


-------------
Product: XTP 18.3.0 on VS 2017
Platform: VS 2017 / Windows 10 (64bit)


Posted By: ABuenger
Date 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



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