Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi ,
I want to capture whether a partcular object is maximised /minised whenver its state gets changed.
Could anyone help me out?
Hi Blessy,
You can write a macro like this
set c=ActiveDocument.GetSheetObject("CH01")
if c.IsMaximized then
set StateID = ActiveDocument.GetVariable("vState")
StateID.SetContent "Maximized" ,true
else
set StateID = ActiveDocument.GetVariable("vState")
StateID.SetContent "Minimized" ,true
end if
Hi,
Thanks.
But where can I call this macro.it should dynamically update the varaible whenever state gets changed.
Hi,
You can add a trigger for the Variable in the Variable Event triggers, for OnChange listener.
Here:
Settings>Document Properties>Triggers
Reply if you could set the action or not.
Regards,
-Karthik
Hi Karthik,
You can't use like that.