Print Page | Close Window

Focus problem with Report and Tab Control

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=2593
Printed Date: 08 November 2025 at 4:03pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Focus problem with Report and Tab Control
Posted By: robosport
Subject: Focus problem with Report and Tab Control
Date Posted: 18 July 2005 at 10:51pm

I opened this as a tech support issue last week but since I haven't received a response there yet and this is a critical problem for me I am posting this here on the forum in the hopes that someone here has experienced this problem.

I have a CXTPReportControl member in a CView-derived class, with a couple of columns, one is a label column and the other is an editable text value. This report control works well and editing works fine on it.

I also have a CXTPTabControl that works fine with multiple tabs on it. The tab control hosts a form view and a couple other views.

Unfortunately when I host the CView-derived class with the CXTPReportControl member, inside one of the tabs of the CXTPTabControl the edit focus on the report control items no longer work properly.

Clicking on an editable item does not work. The edit ends as soon as it begins, still on mouse down. Hosting the same CView without the tab control eliminates the problem.

Is anyone else having a problem hosting editable CXTPReportControls inside a CXTPTabControl tab? or better yet are there any suggestions for fixing this problem (which I am assuming is a focus issue since the edit ends as quickly as it begins).

Thank you.




Replies:
Posted By: robosport
Date Posted: 19 July 2005 at 4:00am

Thank you Oleg for sending me the sample with the report control in the tab control.

After trying to eliminate any differences the problem seems to be coming from the Tab Control being a member of a CView derived class in my project.

When I instantiate the CXTPTabControl directly, instead of instantiating a CView derived class that contains a CXTPTabControl, it the report control editing works just fine.

 

 




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