Open Reality Reference Guide
FBEventDragAndDrop Class Reference

Drag and drop interface. More...

#include <fbcontrols.h>

Inheritance diagram for FBEventDragAndDrop:

Public Member Functions

 FBEventDragAndDrop (HKEventBase pEvent)
 Constructor. More...
 
virtual void Accept ()
 Accept a drag and drop sequence. More...
 
virtual void Add (FBComponent *pComponent, int pId=0)
 Add an item to the drag and drop list. More...
 
virtual FBComponentGet (int pIndex)
 Get the FBComponent specified by pIndex from the Drag and Drop list. More...
 
virtual void Clear ()
 Clear drag and drop list. More...
 
virtual int GetCount ()
 Get the number of items in the DragAndDrop list. More...
 
- Public Member Functions inherited from FBEvent
 FBEvent (HKEvent pEvent)
 Constructor. More...
 

Public Attributes

FBPropertyDragAndDropState State
 Property: Drag and drop sub-event. More...
 
FBPropertyInt PosX
 Property: X position of mouse. More...
 
FBPropertyInt PosY
 Property: Y position of mouse. More...
 
FBPropertykReference Data [2]
 Property: User specified reference. (for example, FBSpread:row) More...
 
- Public Attributes inherited from FBEvent
FBPropertyInt Type
 Read Only Property: Type of event. More...
 

Detailed Description

Drag and drop interface.

Definition at line 510 of file fbcontrols.h.

Constructor & Destructor Documentation

◆ FBEventDragAndDrop()

FBEventDragAndDrop ( HKEventBase  pEvent)

Constructor.

Parameters
pEventBase event (internal) to obtain information from.

Member Function Documentation

◆ Accept()

virtual void Accept ( )
virtual

Accept a drag and drop sequence.

This will cause the region in question to accept a drag and drop action when this event occurs.

◆ Add()

virtual void Add ( FBComponent pComponent,
int  pId = 0 
)
virtual

Add an item to the drag and drop list.

Parameters
pComponentItem to add to the list.
pIdUser-defined reference for the item (default = 0 ).

◆ Clear()

virtual void Clear ( )
virtual

Clear drag and drop list.

◆ Get()

virtual FBComponent* Get ( int  pIndex)
virtual

Get the FBComponent specified by pIndex from the Drag and Drop list.

Parameters
pIndexIndex in list where to get FBComponent.
Returns
Handle to FBComponent in list at pIndex.

◆ GetCount()

virtual int GetCount ( )
virtual

Get the number of items in the DragAndDrop list.

Returns
Number of items in DragAndDrop list.

Member Data Documentation

◆ Data

Property: User specified reference. (for example, FBSpread:row)

Definition at line 550 of file fbcontrols.h.

◆ PosX

Property: X position of mouse.

Definition at line 548 of file fbcontrols.h.

◆ PosY

Property: Y position of mouse.

Definition at line 549 of file fbcontrols.h.

◆ State

FBPropertyDragAndDropState State

Property: Drag and drop sub-event.

Definition at line 547 of file fbcontrols.h.


The documentation for this class was generated from the following file: