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

Comboboxes and spin buttons in report control

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


Joined: 22 June 2005
Status: Offline
Points: 226
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fredrik Quote  Post ReplyReply Direct Link To This Post Topic: Comboboxes and spin buttons in report control
    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
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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
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.141 seconds.