ViewShowGuides Script

Build 1501 on 14/Nov/2017  This topic last edited on: 9/May/2012, at 13:05

Description

Toggles display of guides on the Pages main tab.

Uses the Ena_IsWindowActive function for enabler.

Uses the Chk_IsViewShownGuides function to display the tick mark in the menu.

Syntax

ViewShowGuides

Code

  <ShellCommand(CanExecute:="Ena_IsWindowActive", IsChecked:="Chk_IsViewShownGuides")> _

  Public Sub ViewShowGuides()

    If (Chk_IsViewShowedGridVer() <> 0) And (Chk_IsViewShowedGridHor() <> 0) Then ' hor and ver shown

      Page.ViewShowGuidesHor(SwitchOff)

      Page.ViewShowGuidesVer(SwitchOff)

    ElseIf (Chk_IsViewShowedGridVer()) = 0 And (Chk_IsViewShowedGridHor()) = 0 Then ' hor and ver hidden

      Page.ViewShowGuidesHor(SwitchOn)

      Page.ViewShowGuidesVer(SwitchOn)

    Else

      Page.ViewShowGuidesHor(SwitchOn)

      Page.ViewShowGuidesVer(SwitchOn)

    End If

  End Sub

See also

ViewShowDummy

ViewShowFormatInfo

ViewShowFrames

ViewShowGuides

ViewShowGuidesHor

ViewShowGuidesVer

ViewShowHotSpot

ViewShowImg

ViewShowInfo

ViewShowInvisiblesToggle

ViewShowNormal

ViewShowPreview

ViewShowPrintableOnly

ViewShowTypeInfo