![]() |
Bug in TaskPanel |
Post Reply
|
| Author | |
Dmitry
Groupie
Joined: 28 November 2004 Location: Australia Status: Offline Points: 31 |
Post Options
Thanks(0)
Quote Reply
Topic: Bug in TaskPanelPosted: 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 |
|
![]() |
|
Dmitry
Groupie
Joined: 28 November 2004 Location: Australia Status: Offline Points: 31 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 September 2007 at 4:44am |
|
PS: I'm using XTP 11.1.3 with Visual Studio 2005.
Dmitry. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Dmitry
Groupie
Joined: 28 November 2004 Location: Australia Status: Offline Points: 31 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 September 2007 at 11:35pm |
|
Thanks Oleg, it works great.
Dmitry |
|
![]() |
|
MacW
Senior Member
Joined: 26 June 2007 Status: Offline Points: 253 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |