Bug in Help Browser with Front End Package Commands
- To: mathgroup at smc.vnet.net
- Subject: [mg55160] Bug in Help Browser with Front End Package Commands
- From: "David Park" <djmp at earthlink.net>
- Date: Tue, 15 Mar 2005 00:21:43 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
I have the following code as part of a package command defined as a Module... Table[- generates graphics output frames -]; SelectionMove[EvaluationNotebook[], All, GeneratedCell]; FrontEndTokenExecute["OpenCloseGroup"]; Pause[0.5]; FrontEndExecute[{FrontEnd`SelectionAnimate[200, AnimationDisplayTime -> 0.1, AnimationDirection -> ForwardBackward]}] The code generates animation graphics cells and then closes them up and starts the animation. The code always works properly when the command is evaluated in a working notebook. It also works correctly when evaluated in a HelpBrowser style notebook if it is evaluated outside the Help Browser. But when evaluated inside the Help Browser it behaves erratically and causes fatal errors. The animation will be generated, closed up and started. But the animation control buttons are written at the top of the regular Mathematica title bar! If one clicks on the animation to stop it, it does physically stop, but the the input cell continues to run. One can still grab the vertical scroll bar and if one moves it the text and graphics in the entire browser notebook is smeared out. In other words, the front end has lost control of the notebook. However, if one stops the animation by clicking, restarts the animation by double clicking on it, and then stops it a second time, the original input cell will stop running but there is still some loss of control in the browser window. Why doesn't this code work properly inside the browser window when it works properly with the same notebook outside of the browser? David Park djmp at earthlink.net http://home.earthlink.net/~djmp/