Skip to content

pbAcceptDropFiles - DfBaseContainer

Determines if the container object supports a file drop event

Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None

Syntax

Property Boolean pbAcceptDropFiles
Access Type Syntax
Read Access: Get pbAcceptDropFiles to BooleanVariable
Write Access: Set pbAcceptDropFiles to BooleanVariable/Value

Description

The pbAcceptDropFiles property and the OnFileDropped event provide a mechanism for supporting file drag and drop within your application.

pbAcceptDropFiles determines if the container object supports file drag and drop. If true, dropping files onto the object will send OnFileDropped to the object. If false, and a parent container exists, this parent's pbAcceptDropFiles will be tested in the same manner. Therefore, this property only needs to be set in the outermost container that needs to support file drag and drop. This will normally be a view or panel object.

When file drop is enabled, the cursor will be changed as needed, to indicate that a drop is allowed.

Default is false.