Table Of Contents

Previous topic

FNBDropSource

Next topic

FNBRenderer

This Page

phoenix_title FNBDropTarget

Class used to handle the FlatNotebook.OnDropTarget() method when dragging and dropping between different FlatNotebook instances.


class_hierarchy Inheritance Diagram

Inheritance diagram for class FNBDropTarget

Inheritance diagram of FNBDropTarget


super_classes Known Superclasses

DropTarget


method_summary Methods Summary

__init__ Default class constructor.
OnData Called after OnDrop returns True.

api Class API



class FNBDropTarget(DropTarget)

Class used to handle the FlatNotebook.OnDropTarget() method when dragging and dropping between different FlatNotebook instances.


Methods



__init__(self, parent)

Default class constructor.

Parameters:parent – the window handling the drag and drop, an instance of FlatNotebook.


OnData(self, x, y, dragres)

Called after OnDrop returns True.

By default this will usually call GetData and will return the suggested default value dragres.

Parameters:
  • x – the current x position of the mouse while dragging and dropping;
  • y – the current y position of the mouse while dragging and dropping;
  • dragres – an optional default return value.