Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Fit Zoom to WIndow Button

Hello,

I would like to create a Fit Zoom to Window button to help our users adjust their apps to the many different monitor sizes that are used in the company. Any help on this will be greatly appreciated.

3 Replies
jpapador
Partner - Specialist
Partner - Specialist

You can add this code as a macro and it will zoom to window:

Sub Zoom

    Set s = ActiveDocument.ActiveSheet

   

    ActiveDocument.GetApplication.WaitForIdle 300

   

    'Apply zoom to fit window for current sheet

    ActiveDocument.GetApplication.WaitForIdle 300

    s.FitZoomToWindow

   

    'apply zoom to all other sheets

    ActiveDocument.GetApplication.WaitForIdle 300

    s.ApplyZoomToAllSheets

End Sub

Peter_Cammaert
Partner - Champion III
Partner - Champion III

There is no possibility to zoom in the AccessPoint, so I think you're talking about Desktop or Plugin users.

Write a macro like presented in the first post of this discussion: Fit zoom to window Macro in Access Point

Attach the macro to a button using an action type External->Run Macro

Note that you cannot let a desktop window resize trigger this macro automatically, because QlikView has no events for this.

Best,

Peter

Anonymous
Not applicable
Author

Thanks, new to developing and didn't think about end user's screen not having function. Would probably be confusing for them to have a Zoom button that did not zoom for Access Point users.