Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Bug in TaskPanel
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Bug in TaskPanel

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


Joined: 28 November 2004
Location: Australia
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmitry Quote  Post ReplyReply Direct Link To This Post Topic: Bug in TaskPanel
    Posted: 14 September 2007 at 4:34am
Hi,

There seems to be a bug in using dialogs within TaskPanel groups. It can be reproduced using slightly modified TaskPanel sample.

Attached is the modifications needed to TaskPanel sample to reproduce the problem. Override resource.h, TaskPanel.rc & SearchDlg.cpp and rebuild TaskPanel.sln. Then, run the sample and look at the search dialog.

20070914_042400_TaskPanelBug.zip

The problem:



The three groups with a dialog in each should look like the image on the left when expanded. When they are expanded from the top, they do (ie expand the top group, then centre, then the bottom.) However, when expanded from the bottom up, they look like the image on the right, ie the third group contains rubbish from the second group.

As another way to reproduce the same problem - expand all groups from top to bottom (the picture will be correct), then collapse and expand the top group. The picture will be incorrect again.

Could you please have a look at this ASAP?

Regards,
Dmitry Jouravlev
Back to Top
Dmitry View Drop Down
Groupie
Groupie


Joined: 28 November 2004
Location: Australia
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmitry Quote  Post ReplyReply Direct Link To This Post Posted: 14 September 2007 at 4:44am
PS: I'm using XTP 11.1.3 with Visual Studio 2005.

Dmitry.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 15 September 2007 at 1:35am
Hi,
 
As workaround create small class that will redraw all child windows after expanding:
 
class CControlsTaskPanel : public CXTPTaskPanel
{
 virtual void UpdateScrollBar()
 {
  CXTPTaskPanel::UpdateScrollBar();
  RedrawWindow(0, 0, RDW_INVALIDATE | RDW_ALLCHILDREN);
 }
};
 
and instead CXTPTaskPanel in declarations use CControlsTaskPanel.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Dmitry View Drop Down
Groupie
Groupie


Joined: 28 November 2004
Location: Australia
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmitry Quote  Post ReplyReply Direct Link To This Post Posted: 16 September 2007 at 11:35pm
Thanks Oleg, it works great.

Dmitry
Back to Top
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Posted: 10 October 2007 at 2:45pm
I use a task panel with panels containing form views.

Even using the UpdateScrollBar() trick, I sometimes get the same redraw problems just by scrolling the task bar. If a panel becomes hidden in part by scrolling it out of the visible area, and then scrolling back, it sometimes contains rubbish.


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