Index

XDragEvent

XEvent &rarrXDragEvent


public
  • QueryDragItem
  • QueryDragItemCount
  • QueryDropPos
  • QuerySourceWindow
  • SetAcceptMode
  • SetOperation
  • XDragEvent


  • Derrived

    : public XEvent

    For drag-events a XDragEvent is generated, to catch them you need to install a XDragHandler. Possible event-IDs are:

    DRG_DROPPED an item was dropped DRG_DRAGOVER an item fly over the window

    For drag-events in container see: XContainerDragEvent XContainerEvent XContainerHandler

    public

    QueryDragItem

    Query a dragitem.

    Definition

    BOOL QueryDragItem ( XDragItem* itm, SHORT index )

    Parameters

    : XDragItem * buffer buffer which will get the item-information SHORT index zero-based index of item to query Retuns: -

    Returns

    BOOL

    QueryDragItemCount

    Return the count of drag-items of this dragevent

    Definition

    SHORT QueryDragItemCount ( void )

    Parameters

    : -

    Returns

    SHORT

    SHORT count of items

    QueryDropPos

    Query the position where the objects were dropped

    Definition

    BOOL QueryDropPos ( XPoint* p )

    Parameters

    : XPoint * position buffer which will get the position Retuns: -

    Returns

    BOOL

    QuerySourceWindow

    Query the system-define handle of the window where the objects were dropped.

    Definition

    OOL_WINDOWHANDLE QuerySourceWindow ( void )

    Parameters

    : - Retunrs: OOL_WINDOWHANDLE The system-defined window handle.

    Returns

    OOL_WINDOWHANDLE

    SetAcceptMode

    set the operation supported by the application which receives the drag-event

    Definition

    void SetAcceptMode ( SHORT mode )

    void SetAcceptMode ( SHORT )

    Parameters

    : SHORT accept the opperation, possible values are DRG_DROP accept the items DRG_NODROP dont accept the items in this case DRG_NEVERDROP never accept the items

    Returns

    void

    -

    SetOperation

    set the operation supported by the application which generates the drag-event

    Definition

    void SetOperation ( SHORT op )

    void SetOperation ( SHORT )

    Parameters

    : SHORT operation the opperation, possible values are DRG_COPY copy the items DRG_MOVE move the items DRG_LINK link the items

    Returns

    void

    -

    XDragEvent

    Definition

    XDragEvent ( LONG event, void* v )

    XDragEvent ( LONG, void* )

    Returns

    -


    Created by AutoDoc, (C) 1996 by Jens von Pilgrim