Unit 'layers' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

DeleteLayer

delete layer from layer list.

Declaration

Source position: layers.pas line 165

function DeleteLayer(

  Dummy: LongInt;

  Layer: PLayer

):LongInt;

Arguments

Dummy

  

unused

Layer

  

pointer to a layer

Function result

True if this layer successfully deleted from the system. False if layer not deleted. (probably out of memory )

Description

Remove this layer from the list of layers. Release memory associated with it. Restore other layers that may have been obscured by it. Trigger refresh in those that may need it. If this is a superbitmap layer make sure SuperBitMap is current. The SuperBitMap is not removed from the system but is available for program use even though the rest of the layer information has been deallocated.


Documentation generated on: 2021-07-30