Skip to main content
Announcements
YOUR OPINION MATTERS! Please take the Qlik Experience survey you received via email. Survey ends June 14.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Hide/show button according to Maximize/Minimize state of another chart object

Hi,

Could you provide me with the macro to hide a button when a chart object is minimized and show the button when the chart object is maximized.

Regards

Arun

2 Replies
Not applicable
Author

In the API Guide , there is an example :

rem ** reverse minimize status for all sheet objects on sheet Main **


set s=ActiveDocument.Sheets("Main")
for i=0 to s.NoOfSheetObjects-1
if s.SheetObjects(i).IsMinimized then
s.SheetObjects(i).Restore
else
s.SheetObjects(i).Minimize
end if
next

Philippe

Not applicable
Author

to hide an object , follow the example :

rem ** deactivate all sheet objects on sheet Main one by one **
set s=ActiveDocument.Sheets("Main")
for i=0 to s.NoOfSheetObjects-1
s.SheetObjects(i).Deactivate
next