|
GETTING EXTRA UNWANTED BACKGROUNDS?
The process of
creating a new page in ToolBook has the option of also generating a new
background. However a bug in ToolBook sometimes causes an extra unwanted
background to be created even if you didn't ask for it to be created.
There is no
known fix for the bug, no way to prevent it from happening.
Your options
are to fix the damage done by merge the backgrounds together after you
notice the problem, and/or to have ToolBook warn you when the problem
occurs.
Here is some code I use to detect this problem - as it happens. I put it in my Book Script, and anytime my background count changes I am notified. If it was intentional I ignore it, and if the new background was unintentional, I immediately delete the newly created page, close and reopen the book, and try again.
to handle enterPage
system bgct
if bgct = null
bgct = backgroundCount of this book
end
newBgct = backgroundCount of this book
if newBgct <> bgct
request "GENERAL WARNING:" & CRLF & \
"Background count was: " & bgct & CRLF & \
"Background count now is: " & newBgct
bgct = newBgct
end
forward
end
Alternately
you can choose to fix the problem after the fact, by merging identical
backgrounds together, via a Developers Exchange Tool called the Background
Auto Merger (which coincidentally I wrote). It is available for
ToolBook 8.5 and higher via the standard Developers Exchange Tools feature
in ToolBook (see the option in the Tools menu).
|