Print Page | Close Window

Command bar text update vs. hidden pane

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=4317
Printed Date: 24 April 2024 at 12:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Command bar text update vs. hidden pane
Posted By: spiderM9
Subject: Command bar text update vs. hidden pane
Date Posted: 31 May 2006 at 2:58pm

When handling the "update" for a command bar item, our application main frame is delegating to the active docking pane.  If the docking pane causes the text of a command to change (e.g. the text of a toolbar button of a visible toolbar in the main frame), the following problem occurs:

1.  if the docking pane is hidden (docked to the side as a tab, by pressing the pin).

2.  when the mouse hovers over the pinned tab, the docking pane starts to expand.

3.  as part of this expanding animation, some sort of delayed layout recalc occurs, while it is expanding.

4.  this recalc causes the whole menu/command bar system to do the idle processing that results in the update status calls.

5.  the update reaches the currently animating pane

6.  the pane changes the text.

7.  the changing text triggers a recalc layout.

8.  the recalc layout triggers some code in xtreme that causes the current active pane to close.

9.  since the active pane is the animating docking pane, it closes back up, before it gets a chance to expand fully.

If I disable changing the text during these animations, I end up in a situation where context menus with dynamic text can't work when the docking pane is temporarily expanded, but not pinned into place.

Is there any known workaround for this?




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