Print Page | Close Window

CXTPReportControl Edit-In-Place Problems

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=6289
Printed Date: 12 November 2025 at 5:10am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPReportControl Edit-In-Place Problems
Posted By: k_shehadeh
Subject: CXTPReportControl Edit-In-Place Problems
Date Posted: 31 January 2007 at 3:49pm
We found a problem with using CXTPReportControl and edit-in-place in a very specific situation.  In our case, we have a report control that is taking advantage of the tree feature.  I am allowing the user to add items to the tree and beginning an in-place edit immediately.  If there are items in the list already, there's no problem.  If the item being added is the first, the edit box "appears" in the header area of the control (pretty much invisible).  The user can enter text and hit enter.  When he does, the new item updates to reflect the next text. 

I've reproduced this problem in the ReportSample sample in codejock distrib. To reproduce, download my altered version here:
http://www.iwonderdesigns.com/downloads/ReportSample.zip - http://www.iwonderdesigns.com/downloads/ReportSample.zip

Then follow these steps:
1) Build and launch
2) Navigate to 'Report Control > Control Test > Tree Properties'
3) In the window that appears, press the 'New' button in the toolbar.  A new item will appear - without doing anything else start typing on the keyboard. 
4) Hit enter
5) The text changes to reflect the new item.

Bulk of the new code is here: CPropertiesFrame::Add()

Thanks!

Karim


-------------
Karim Shehadeh
iWonder Designs
http://www.iwonderdesigns.com - http://www.iwonderdesigns.com



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