Versions Compared

Key

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

...

The PredrawnObjects property populates the one and only predrawn objects pane, assuming you used the Panes property to add one. Predrawn objects are compound shapes composed of other shapes and/or objects. Users can create them at their own discretion in order to reuse complex shapes in their sketches.

You will never set this property with human readable data. Instead, you will read this property, usually when the SRP Sketch Control form's closes, in order to save the predrawn objects to the database. The format of this property is an @FM delimited array with each field being Base64 encoded binary data, much like what you get from the Data property.

Example

Code Block
// Save our predrawn objects to a SYSLISTS record
Objects = Get_Property(@Window:".OLE_SKETCH", "OLE.PredrawnObjects")
Open "SYSLISTS" to hTable then
   Write Objects to hTable, "PREDRAWN_OBJECTS" then NULL
end

// Load our predrawn objects from a SYSLISTS record
Open "SYSLISTS" to hTable then
   Read Objects from hTable, "PREDRAWN_OBJECTS" then
       Set_Property(@Window:".OLE_SKETCH", "OLE.PredrawnObjects", Objects)
   end
end

See Also

PanesData