Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPReportControl Edit-In-Place Problems
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPReportControl Edit-In-Place Problems

 Post Reply Post Reply
Author
Message
k_shehadeh View Drop Down
Newbie
Newbie
Avatar

Joined: 19 August 2005
Location: United States
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote k_shehadeh Quote  Post ReplyReply Direct Link To This Post Topic: CXTPReportControl Edit-In-Place Problems
    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

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
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.047 seconds.