Navigation:  Classes > bBrowser >

bBrowser:CellDragDrop()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

A callback method for drag & drop between two bBrowsers.

Class

bBrowser

Type

Method

Syntax

<oBrowser>:CellDragDrop(

<iMode>,

<hDragOwner>,

<hDragData>

) Æ lSuccess

Arguments

<iMode>Mode for the dag & drop process. The following modes are supported:

 

Mode

Description

Return Value

BCDM_DRAGSTART

The drag & drop process is started.

 

Note
This mode occurs only in the server.

The return value FALSE stops the drag & drop process.

BCDM_DRAGOVER

The mouse pointer is over a bBrowser.

 

Note
This mode occurs only in the client.

The return value FALSE signals to the server that the client does not support the drag & drop operation. The mouse pointer is shown as crossed out circle.

BCDM_DROP

The pressed left mouse button was released and thus the cells over the client was dropped.

 

Note
This mode occurs only in the client.

The return value has no effect.

BCDM_DRAGEND

The drag & drop process was successfully executed.

 

Note
This mode occurs only in the server.

The return value has no effect.

BCDM_DRAGCANCEL

The drag & drop process was canceled.

 

Note
This mode occurs only in the server.

The return value has no effect.

 

Data Type:DWord

 

<hDragOwner>Window handle of the bBrowser (server) in that the drag & drop process was started.
Data Type:Ptr

 

<hDragData>Data to the drag & drop process.
Data Type:Ptr

Return Value

lSuccessA logical value that indicates whether the drag & drop process was correctly processed.
Data Type:Logic

Description

bBrowser:CellDragDrop() is a callback method that is called during a drag & drop process. The method checks whether a method with the same name is defined in the owner of the bBrowser and calls this with an object of class bCellDragEvent as argument.

 

The entire drag & drop process is divided into several modes that can occur in the server and/or in the client. For each mode the browser calls the method CellDragDrop() with the appropriate mode. The owner of the browser can react by means of its own CellDragDrop() method to these modes.

See Also

bBrowser:DragDropMode

bBrowser:Drag()

bBrowser:InDrag()

bCellDragEvent

bSample - DragDrop

 


Page url: http://www.YOURSERVER.com/index.html?bbrowser_celldragdrop.htm