Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PosNameTypeDescription
<0, 1>LabelTextThe label
<0, 2>DescriptionTextThe label's optional description

...

The Labels property defines the labels for a specified pane. Label panes are created using the Panes property. To target a specific pane, you must pass an existing pane's caption as the index to this property.

...

Code Block
// Add labels to a pane called Codes. These codes indicate pest control findings.
Codes = ""
Codes<-1> = "1A":@VM:"Termites"
Codes<-1> = "2A":@VM:"Ants"
Codes<-1> = "3A":@VM:"Carpenter Ants"
Codes<-1> = "4A":@VM:"Spiders"
Codes<-1> = "5A":@VM:"Wasps"
Codes<-1> = "6A":@VM:"Bees"
Set_Property(@Window:".OLE_SKETCH", "OLE.Labels[Codes]", Codes)

// Add labels to a pane called Labels with no descriptions
Labels = ""
Labels<-1> = "Attic"
Labels<-1> = "Back Yard"
Labels<-1> = "Basement"
Labels<-1> = "Bedroom"
Labels<-1> = "Dining Room"
Labels<-1> = "Family Room"
Labels<-1> = "Front Yard"
Labels<-1> = "Garage"
Labels<-1> = "Kitchen"
Labels<-1> = "Living Room"
Set_Property(@Window:".OLE_SKETCH", "OLE.Labels[Labels]", Labels)

See Also

Panes