Print Page | Close Window

Bug in TaskPanel

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=8001
Printed Date: 13 November 2025 at 11:38pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Bug in TaskPanel
Posted By: Dmitry
Subject: Bug in TaskPanel
Date 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.

uploads/20070914_042400_TaskPanelBug.zip - 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



Replies:
Posted By: Dmitry
Date Posted: 14 September 2007 at 4:44am
PS: I'm using XTP 11.1.3 with Visual Studio 2005.

Dmitry.


Posted By: Oleg
Date 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


Posted By: Dmitry
Date Posted: 16 September 2007 at 11:35pm
Thanks Oleg, it works great.

Dmitry


Posted By: MacW
Date 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.





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