Added wxDragImage and demo, (used wxGenericDragImage for both

platforms)

Added demo of changing keyboard handling in wxGrid

SWIGged sources update


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2000-05-17 20:45:27 +00:00
parent a1e181ef4d
commit cabc28c46e
2 changed files with 21 additions and 8 deletions

View File

@@ -7,6 +7,9 @@ On Windows, the WIN32 API is used to do achieve smooth dragging. On other platfo
wxGenericDragImage is used. Applications may also prefer to use wxGenericDragImage is used. Applications may also prefer to use
wxGenericDragImage on Windows, too. wxGenericDragImage on Windows, too.
\pythonnote{wxPython uses wxGenericDragImage on all platforms, but
uses the wxDragImage name.}
To use this class, when you wish to start dragging an image, create a wxDragImage To use this class, when you wish to start dragging an image, create a wxDragImage
object and store it somewhere you can access it as the drag progresses. object and store it somewhere you can access it as the drag progresses.
Call BeginDrag to start, and EndDrag to stop the drag. To move the image, Call BeginDrag to start, and EndDrag to stop the drag. To move the image,
@@ -48,19 +51,27 @@ Constructs a drag image from a bitmap and optional cursor.
Constructs a drag image from an icon and optional cursor. Constructs a drag image from an icon and optional cursor.
\pythonnote{This constructor is called wxDragIcon in wxPython.}
\func{}{wxDragImage}{\param{const wxString\& }{text}, \param{const wxCursor\& }{cursor = wxNullCursor}, \func{}{wxDragImage}{\param{const wxString\& }{text}, \param{const wxCursor\& }{cursor = wxNullCursor},
\param{const wxPoint& }{hotspot = wxPoint(0, 0)}} \param{const wxPoint& }{hotspot = wxPoint(0, 0)}}
Constructs a drag image from a text string and optional cursor. Constructs a drag image from a text string and optional cursor.
\pythonnote{This constructor is called wxDragString in wxPython.}
\func{}{wxDragImage}{\param{const wxTreeCtrl\& }{treeCtrl}, \param{wxTreeItemId\& }{id}} \func{}{wxDragImage}{\param{const wxTreeCtrl\& }{treeCtrl}, \param{wxTreeItemId\& }{id}}
Constructs a drag image from the text in the given tree control item, and optional cursor. Constructs a drag image from the text in the given tree control item, and optional cursor.
\pythonnote{This constructor is called wxDragTreeItem in wxPython.}
\func{}{wxDragImage}{\param{const wxListCtrl\& }{treeCtrl}, \param{long }{id}} \func{}{wxDragImage}{\param{const wxListCtrl\& }{treeCtrl}, \param{long }{id}}
Constructs a drag image from the text in the given tree control item, and optional cursor. Constructs a drag image from the text in the given tree control item, and optional cursor.
\pythonnote{This constructor is called wxDragListItem in wxPython.}
\wxheading{Parameters} \wxheading{Parameters}
\docparam{image}{Icon or bitmap to be used as the drag image. The bitmap can \docparam{image}{Icon or bitmap to be used as the drag image. The bitmap can

View File

@@ -383,6 +383,7 @@ as possible to the C++ spec over time.
\item \helpref{wxDC}{wxdc} \item \helpref{wxDC}{wxdc}
\item \helpref{wxDialog}{wxdialog} \item \helpref{wxDialog}{wxdialog}
\item \helpref{wxDirDialog}{wxdirdialog} \item \helpref{wxDirDialog}{wxdirdialog}
\item \helpref{wxDragImage}{wxdragimage}
\item \helpref{wxDropFilesEvent}{wxdropfilesevent} \item \helpref{wxDropFilesEvent}{wxdropfilesevent}
\item \helpref{wxDropSource}{wxdropsource} \item \helpref{wxDropSource}{wxdropsource}
\item \helpref{wxDropTarget}{wxdroptarget} \item \helpref{wxDropTarget}{wxdroptarget}
@@ -504,6 +505,7 @@ as possible to the C++ spec over time.
\item \helpref{wxTextDropTarget}{wxtextdroptarget} \item \helpref{wxTextDropTarget}{wxtextdroptarget}
\item \helpref{wxTextEntryDialog}{wxtextentrydialog} \item \helpref{wxTextEntryDialog}{wxtextentrydialog}
\item \helpref{wxTimer}{wxtimer} \item \helpref{wxTimer}{wxtimer}
\item \helpref{wxTipProvider}{wxtipprovider}
\item wxToolBarTool \item wxToolBarTool
\item \helpref{wxToolBar}{wxtoolbar} \item \helpref{wxToolBar}{wxtoolbar}
\item wxToolTip \item wxToolTip