I want to enhance an Impress presentation by some interactive elements.
To give an example: I have two squares called "box1" and "yes1".
When user clicks on "box1" then "yes1" should get a shadow and viceversa - actually clicking on box1 toggles the shadow of yes1
(stupid example ... )
So I created this macro:
Code: Select all
Sub CheckIt1
CheckIt(1)
End Sub
Function CheckIt( number )
page = thisComponent.getCurrentController.getCurrentPage
kobj = void
obj = void
if page.hasElements() then
for i = 0 to page.getCount() - 1
obj = page.getbyIndex(i)
if obj.Name = "yes" & number then
kobj = obj
end if
next i
if kobj.Shadow = true then
kobj.Shadow = false
else
kobj.Shadow = true
end if
end if
End Function
It works beautiful in authoring mode ...
but not at all in slide-show-mode (or presentation mode - I do not know how to name it best)
So: No chance to get this? Or did I simply miss something?
Thanks for any advice ...
peter.