Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Focus problem with Report and Tab Control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Focus problem with Report and Tab Control

 Post Reply Post Reply
Author
Message
robosport View Drop Down
Groupie
Groupie


Joined: 20 June 2005
Location: United States
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote robosport Quote  Post ReplyReply Direct Link To This Post Topic: Focus problem with Report and Tab Control
    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.

Back to Top
robosport View Drop Down
Groupie
Groupie


Joined: 20 June 2005
Location: United States
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote robosport Quote  Post ReplyReply Direct Link To This Post 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.

 

 

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.