Plugin Immunity

FlexibleLearning at aol.com FlexibleLearning at aol.com
Tue Oct 17 08:52:21 CDT 2006


Until such time as the Rev tools palette is fixed with...

function  revFilterStacksList pStacks
global gREVPassMode --hack to deal with  modes on startup
repeat for each line l in  pStacks
if the mode of this stack >1 and \  <--  NEW LINE
char 1 to 3 of l is not "rev" and  \
l is not among the items of "Message  Box,Home,answer dialog,ask
dialog,script debugger,file selector,color  chooser,Magnify" or \
(the mode of stack l is  1 and not gREVPassMode) then \
put l & cr  after tReturnValue
end repeat
delete last char of  tReturnValue
put false into gREVPassMode
return  tReturnValue
end revFilterStacksList

this is what I will be  implementing in the Scripter's Scrapbook 
frontScript...
 
# PLUGIN IMMUNITY
on newButton
ssBkCheckRevImmunity
pass newButton
end newButton
 
on newField
ssBkCheckRevImmunity
pass newField
end  newField
 
on newGraphic
ssBkCheckRevImmunity
pass  newGraphic
end newGraphic
 
on newScrollbar
ssBkCheckRevImmunity
pass  newScrollbar
end newScrollbar
 
on newImage
ssBkCheckRevImmunity
pass newImage
end  newImage
 
on newPlayer
ssBkCheckRevImmunity
pass newPlayer
end  newPlayer
 
on ssBkCheckRevImmunity
if the mainstack of this stack <>  "Scripter's Scrapbook" then exit 
ssBkCheckRevImmunity
if the mode of  this stack = 1 then exit ssBkCheckRevImmunity
delete last  control
beep
exit to top
end  ssBkCheckRevImmunity


It does not prevent the blue stack border on dragEnter, but seems to  achieve 
the desired result. Comments welcome.
 
/H
FLCo


More information about the metacard mailing list