Print Page | Close Window

Comboboxes and spin buttons 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=23200
Printed Date: 25 April 2024 at 11:49pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Comboboxes and spin buttons in report control
Posted By: Fredrik
Subject: Comboboxes and spin buttons in report control
Date Posted: 14 November 2016 at 4:44am
I've got a couple of problems with the report control in 17.3 and I tested using the report sample, REPORT CONTROL > Quality Assurance > Combobox

I use
m_wndReport.FocusSubItems(TRUE);
m_wndReport.GetPaintManager()->m_bShowNonActiveInPlaceButton = TRUE;

1) It requires initially two click on the combo box arrow to show the combo box. The first click just seem to put focus in the cell, but since I click on the combo box arrow I'd want to see the combo box. 

2) In the first column (AllowEdit ConstraintEdit) I'd like to be able to use Space to open the combo box. It used to work in a previous version (15.2.6) and our Quality Assurance team apparently used it in their tests. 

3) Wish: I'd like to get a notification when I click the arrow in the spin control. There is actually an outcommented line in XTPReportRecordItem.cpp, line 1770 which would probably do what I want. Is there a reason why XTP_NM_REPORT_VALUECHANGED is not sent when you click the spin button arrow?

Regards, 
Fredrik


-------------
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0



Replies:
Posted By: mgampi
Date Posted: 20 June 2017 at 5:10am
3) I have the same issue!

What is the reason for the commented line. Now, the item value cannot be changed using spin buttons.


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: olebed
Date Posted: 21 June 2017 at 3:56am
Originally posted by Fredrik Fredrik wrote:

3) Wish: I'd like to get a notification when I click the arrow in the spin control. There is actually an outcommented line in XTPReportRecordItem.cpp, line 1770 which would probably do what I want. Is there a reason why XTP_NM_REPORT_VALUECHANGED is not sent when you click the spin button arrow?

Hi,

This line was commented in 2008 year with comment
Quote sent InplaceEditChanging event when spin button pressed to allow user create custom conditions
ValueChanging and ValueChanged are sent in the end of cell editing (no for each spin button click).


Regards,
 Oleksandr Lebed


Posted By: mgampi
Date Posted: 21 June 2017 at 4:14am
But I get no ValueChanged message at the end, maybe because I set constraint edit to true!
So therefore in my case the user can only change the value using the spin buttons. Direct editing is forbidden.
In this special case I need the Value changed message whenever the value changes.

Please correct this!




-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



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