Examples: ColorLegend property

This form action toggles the ColorLegend property.

%INCLUDE "lsconst.lss"
Sub Click(Source As Button)
  Dim ws As NotesUIWorkspace
  Dim uid As NotesUIDocument
  Dim uis As NotesUIScheduler
  Set ws = New NotesUIWorkspace
  Set uid = ws.CurrentDocument
  Set uis = uid.GetSchedulerObject("Main")
  If Messagebox("Do you want to change this setting?", _
  "ColorLegend is " + uis.ColorLegend) = IDYES Then
    uis.ColorLegend = NOT uis.ColorLegend
  End If
End Sub