Added wxWindow::DoMoveWindow(..)
Changed dnd and clipboard overviews. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -5,6 +5,8 @@ clipboard class from wxWindows 1.xx, which has the same name but a different imp
|
|||||||
|
|
||||||
To use the clipboard, you call member functions of the global {\bf wxTheClipboard} object.
|
To use the clipboard, you call member functions of the global {\bf wxTheClipboard} object.
|
||||||
|
|
||||||
|
See also the \helpref{wxDataObject overview}{wxdataobjectoverview} for further information.
|
||||||
|
|
||||||
Call \helpref{wxClipboard::Open}{wxclipboardopen} to get ownership of the clipboard. If this operation returns TRUE, you
|
Call \helpref{wxClipboard::Open}{wxclipboardopen} to get ownership of the clipboard. If this operation returns TRUE, you
|
||||||
now own the clipboard. Call \helpref{wxClipboard::SetData}{wxclipboardsetdata} to put data
|
now own the clipboard. Call \helpref{wxClipboard::SetData}{wxclipboardsetdata} to put data
|
||||||
on the clipboard, or \helpref{wxClipboard::GetData}{wxclipboardgetdata} to
|
on the clipboard, or \helpref{wxClipboard::GetData}{wxclipboardgetdata} to
|
||||||
|
@@ -1,9 +1,10 @@
|
|||||||
\section{\class{wxDropSource}}\label{wxdropsource}
|
\section{\class{wxDropSource}}\label{wxdropsource}
|
||||||
|
|
||||||
\overview{Overview}{wxdndoverview}
|
|
||||||
|
|
||||||
This class represents a source for a drag and drop operation.
|
This class represents a source for a drag and drop operation.
|
||||||
|
|
||||||
|
See \helpref{Drag'n'Drop overview}{wxdndoverview} and \helpref{wxDataObject overview}{wxdataobjectoverview}
|
||||||
|
for more information.
|
||||||
|
|
||||||
\wxheading{Derived from}
|
\wxheading{Derived from}
|
||||||
|
|
||||||
None
|
None
|
||||||
@@ -30,7 +31,7 @@ enum wxDragResult
|
|||||||
|
|
||||||
\wxheading{See also}
|
\wxheading{See also}
|
||||||
|
|
||||||
\helpref{Drag and drop overview}{wxdndoverview}, \helpref{wxDropTarget}{wxdroptarget},
|
\helpref{wxDropTarget}{wxdroptarget},
|
||||||
\helpref{wxTextDropTarget}{wxtextdroptarget}, \helpref{wxFileDropTarget}{wxfiledroptarget}
|
\helpref{wxTextDropTarget}{wxtextdroptarget}, \helpref{wxFileDropTarget}{wxfiledroptarget}
|
||||||
|
|
||||||
\latexignore{\rtfignore{\wxheading{Members}}}
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
||||||
|
@@ -1,7 +1,5 @@
|
|||||||
\section{\class{wxDropTarget}}\label{wxdroptarget}
|
\section{\class{wxDropTarget}}\label{wxdroptarget}
|
||||||
|
|
||||||
\overview{Overview}{wxdndoverview}
|
|
||||||
|
|
||||||
This class represents a target for a drag and drop operation. A \helpref{wxDataObject}{wxdataobject}
|
This class represents a target for a drag and drop operation. A \helpref{wxDataObject}{wxdataobject}
|
||||||
can be associated with it and by default, this object will be filled with the data from the
|
can be associated with it and by default, this object will be filled with the data from the
|
||||||
drag source, if the data formats supported by the data object match the drag source data
|
drag source, if the data formats supported by the data object match the drag source data
|
||||||
@@ -13,6 +11,9 @@ the whole window area, but only a small portion of it. The normal sequence of ca
|
|||||||
\helpref{OnEnter}{wxdroptargetonenter}, possibly many times \helpref{OnDragOver}{wxdroptargetondragover},
|
\helpref{OnEnter}{wxdroptargetonenter}, possibly many times \helpref{OnDragOver}{wxdroptargetondragover},
|
||||||
\helpref{OnDrop}{wxdroptargetondrop} and finally \helpref{OnData}{wxdroptargetondata}.
|
\helpref{OnDrop}{wxdroptargetondrop} and finally \helpref{OnData}{wxdroptargetondata}.
|
||||||
|
|
||||||
|
See \helpref{Drag'n'Drop overview}{wxdndoverview} and \helpref{wxDataObject overview}{wxdataobjectoverview}
|
||||||
|
for more information.
|
||||||
|
|
||||||
\wxheading{Derived from}
|
\wxheading{Derived from}
|
||||||
|
|
||||||
None
|
None
|
||||||
@@ -39,7 +40,7 @@ enum wxDragResult
|
|||||||
|
|
||||||
\wxheading{See also}
|
\wxheading{See also}
|
||||||
|
|
||||||
\helpref{Drag and drop overview}{wxdndoverview}, \helpref{wxDropSource}{wxdropsource},
|
\helpref{wxDropSource}{wxdropsource},
|
||||||
\helpref{wxTextDropTarget}{wxtextdroptarget}, \helpref{wxFileDropTarget}{wxfiledroptarget},
|
\helpref{wxTextDropTarget}{wxtextdroptarget}, \helpref{wxFileDropTarget}{wxfiledroptarget},
|
||||||
\helpref{wxDataFormat}{wxdataformat}, \helpref{wxDataObject}{wxdataobject}
|
\helpref{wxDataFormat}{wxdataformat}, \helpref{wxDataObject}{wxdataobject}
|
||||||
|
|
||||||
|
@@ -1,15 +1,4 @@
|
|||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
\section{wxDataObject overview}\label{wxdataobjectoverview}
|
||||||
%% Name: tclipbrd.tex
|
|
||||||
%% Purpose: Data transfer (clipboard and drag and drop) overview
|
|
||||||
%% Author: Vadim Zeitlin
|
|
||||||
%% Modified by:
|
|
||||||
%% Created: 18.10.99
|
|
||||||
%% RCS-ID: $Id$
|
|
||||||
%% Copyright: (c) Vadim Zeitlin
|
|
||||||
%% Licence: wxWindows licence
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
|
|
||||||
\section{Clipboard and drag and drop overview}\label{wxdndoverview}
|
|
||||||
|
|
||||||
Classes: \helpref{wxDataObject}{wxdataobject},
|
Classes: \helpref{wxDataObject}{wxdataobject},
|
||||||
\helpref{wxClipboard}{wxclipboard},
|
\helpref{wxClipboard}{wxclipboard},
|
||||||
@@ -17,8 +6,6 @@ Classes: \helpref{wxDataObject}{wxdataobject},
|
|||||||
\helpref{wxDropSource}{wxdropsource},
|
\helpref{wxDropSource}{wxdropsource},
|
||||||
\helpref{wxDropTarget}{wxdroptarget}
|
\helpref{wxDropTarget}{wxdroptarget}
|
||||||
|
|
||||||
See also: \helpref{DnD sample}{samplednd}
|
|
||||||
|
|
||||||
This overview discusses data transfer through clipboard or drag and drop. In
|
This overview discusses data transfer through clipboard or drag and drop. In
|
||||||
wxWindows, these two ways to transfer data (either between different
|
wxWindows, these two ways to transfer data (either between different
|
||||||
applications or inside one and the same) are very similar which allows to
|
applications or inside one and the same) are very similar which allows to
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
\section{Drag-and-drop and clipboard overview}\label{wxdndoverview}
|
\section{Drag'n'Drop overview}\label{wxdndoverview}
|
||||||
|
|
||||||
Classes: \helpref{wxDataObject}{wxdataobject},
|
Classes: \helpref{wxDataObject}{wxdataobject},
|
||||||
\helpref{wxTextDataObject}{wxtextdataobject},
|
\helpref{wxTextDataObject}{wxtextdataobject},
|
||||||
@@ -10,53 +10,51 @@ Classes: \helpref{wxDataObject}{wxdataobject},
|
|||||||
Note that wxUSE\_DRAG\_AND\_DROP must be defined in setup.h in order
|
Note that wxUSE\_DRAG\_AND\_DROP must be defined in setup.h in order
|
||||||
to use Drag'n'Drop in wxWindows.
|
to use Drag'n'Drop in wxWindows.
|
||||||
|
|
||||||
This overview describes wxWindows support for drag and drop and clipboard
|
See also: \helpref{wxDataObject overview}{wxdataobjectoverview} and \helpref{DnD sample}{samplednd}
|
||||||
operations. Both of these topics are discussed here because, in fact, they're
|
|
||||||
quite related. Drag and drop and clipboard are just two ways of passing the
|
|
||||||
data around and so the code required to implement both types of the operations
|
|
||||||
is almost the same.
|
|
||||||
|
|
||||||
Both operations involve passing some data from one program to another,
|
It may be noted that data transfer to and from the clipboard is quite
|
||||||
although the data can be received in the same program as the source. In the case
|
similar to data transfer with Drag'n'Drop and the code to implement
|
||||||
of clipboard transfer, the data is first placed on the clipboard and then
|
these two types is almost the same. In particular, both data transfer
|
||||||
pasted into the destination program, while for a drag-and-drop operation the
|
mechanisms store data in some kind of \helpref{wxDataObject}{wxdataobject}
|
||||||
data object is not stored anywhere but is created when the user starts
|
and identify its format(s) using the \helpref{wxDataFormat}{wxdataformat}
|
||||||
dragging and is destroyed as soon as he ends it, whether the operation was
|
class.
|
||||||
ended successfully or cancelled.
|
|
||||||
|
|
||||||
To be a {\it drag source}, i.e. to provide the data which may be dragged by
|
To be a {\it drag source}, i.e. to provide the data which may be dragged by
|
||||||
user elsewhere, you should implement the following steps:
|
user elsewhere, you should implement the following steps:
|
||||||
|
|
||||||
\begin{itemize}\itemsep=0pt
|
\begin{itemize}\itemsep=0pt
|
||||||
\item {\bf Preparation:} First of all, the data object must be created and
|
\item {\bf Preparation:} First of all, a data object must be created and
|
||||||
initialized with the data you wish to drag. For example:
|
initialized with the data you wish to drag. For example:
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
wxDataObject *my_data = new wxTextDataObject data("This string will be dragged.");
|
wxTextDataObject my_data("This text will be dragged.");
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
\item{\bf Drag start:} To start dragging process (typically in response to a
|
\item{\bf Drag start:} To start dragging process (typically in response to a
|
||||||
mouse click) you must call \helpref{DoDragDrop}{wxdropsourcedodragdrop} function
|
mouse click) you must call \helpref{wxDropSource::DoDragDrop}{wxdropsourcedodragdrop}
|
||||||
of wxDropSource object which should be constructed like this:
|
like this:
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
wxDropSource dragSource( this );
|
wxDropSource dragSource( this );
|
||||||
dragSource.SetData( my_data );
|
dragSource.SetData( my_data );
|
||||||
|
wxDragResult result = dragSource.DoDragDrop( TRUE );
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
\item {\bf Dragging:} The call to DoDragDrop() blocks until the user release the
|
\item {\bf Dragging:} The call to DoDragDrop() blocks the program until the user release the
|
||||||
mouse button (unless you override \helpref{GiveFeedback}{wxdropsourcegivefeedback} function
|
mouse button (unless you override \helpref{GiveFeedback}{wxdropsourcegivefeedback} function
|
||||||
to do something special). When the mouse moves in a window of a program which understands the
|
to do something special). When the mouse moves in a window of a program which understands the
|
||||||
same drag-and-drop protocol (any program under Windows or any program supporting the
|
same drag-and-drop protocol (any program under Windows or any program supporting the
|
||||||
XDnD protocol under X Windows), the corresponding \helpref{wxDropTarget}{wxdroptarget} methods
|
XDnD protocol under X Windows), the corresponding \helpref{wxDropTarget}{wxdroptarget} methods
|
||||||
are called - see below.
|
are called - see below.
|
||||||
\item {\bf Processing the result:} DoDragDrop() returns an {\it effect code} which
|
\item {\bf Processing the result:} DoDragDrop() returns an {\it effect code} which
|
||||||
is one of the values of \helpref{wxDragResult}{wxdropsource} enum. Codes
|
is one of the values of {\tt wxDragResult} enum (explained \helpref{here}{wxdroptarget}):
|
||||||
of wxDragError, wxDragNone and wxDragCancel have the obvious meaning and mean
|
|
||||||
that there is nothing to do on the sending end (except of possibly logging the
|
\begin{verbatim}
|
||||||
error in the first case). wxDragCopy means that the data has been successfully
|
switch (result)
|
||||||
copied and doesn't require any specific actions neither. But wxDragMove is
|
{
|
||||||
special because it means that the data must be deleted from where it was
|
case wxDragCopy: /* copy the data */ break;
|
||||||
copied. If it doesn't make sense (dragging selected text from a read-only
|
case wxDragMove: /* move the data */ break;
|
||||||
file) you should pass FALSE as parameter to DoDragDrop() in the previous step.
|
default: /* do nothing */ break;
|
||||||
|
}
|
||||||
|
\end{verbatim}
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
|
|
||||||
To be a {\it drop target}, i.e. to receive the data dropped by user you should
|
To be a {\it drop target}, i.e. to receive the data dropped by user you should
|
||||||
|
@@ -86,7 +86,12 @@ public:
|
|||||||
virtual bool IsTopLevel() const { return TRUE; }
|
virtual bool IsTopLevel() const { return TRUE; }
|
||||||
|
|
||||||
// implementation
|
// implementation
|
||||||
|
// --------------
|
||||||
|
|
||||||
|
// move the window to the specified location and resize it: this is called
|
||||||
|
// from both DoSetSize() and DoSetClientSize()
|
||||||
|
virtual void DoMoveWindow(int x, int y, int width, int height);
|
||||||
|
|
||||||
virtual void GtkOnSize( int x, int y, int width, int height );
|
virtual void GtkOnSize( int x, int y, int width, int height );
|
||||||
virtual void OnInternalIdle();
|
virtual void OnInternalIdle();
|
||||||
|
|
||||||
|
@@ -93,6 +93,10 @@ public:
|
|||||||
// implementation from now on
|
// implementation from now on
|
||||||
// --------------------------
|
// --------------------------
|
||||||
|
|
||||||
|
// move the window to the specified location and resize it: this is called
|
||||||
|
// from both DoSetSize() and DoSetClientSize()
|
||||||
|
virtual void DoMoveWindow(int x, int y, int width, int height);
|
||||||
|
|
||||||
// GTK callbacks
|
// GTK callbacks
|
||||||
virtual void GtkOnSize( int x, int y, int width, int height );
|
virtual void GtkOnSize( int x, int y, int width, int height );
|
||||||
virtual void OnInternalIdle();
|
virtual void OnInternalIdle();
|
||||||
|
@@ -104,6 +104,10 @@ public:
|
|||||||
// implementation
|
// implementation
|
||||||
// --------------
|
// --------------
|
||||||
|
|
||||||
|
// move the window to the specified location and resize it: this is called
|
||||||
|
// from both DoSetSize() and DoSetClientSize()
|
||||||
|
virtual void DoMoveWindow(int x, int y, int width, int height);
|
||||||
|
|
||||||
virtual WXWidget GetHandle() const { return m_widget; }
|
virtual WXWidget GetHandle() const { return m_widget; }
|
||||||
|
|
||||||
// also sets the global flag
|
// also sets the global flag
|
||||||
|
@@ -86,7 +86,12 @@ public:
|
|||||||
virtual bool IsTopLevel() const { return TRUE; }
|
virtual bool IsTopLevel() const { return TRUE; }
|
||||||
|
|
||||||
// implementation
|
// implementation
|
||||||
|
// --------------
|
||||||
|
|
||||||
|
// move the window to the specified location and resize it: this is called
|
||||||
|
// from both DoSetSize() and DoSetClientSize()
|
||||||
|
virtual void DoMoveWindow(int x, int y, int width, int height);
|
||||||
|
|
||||||
virtual void GtkOnSize( int x, int y, int width, int height );
|
virtual void GtkOnSize( int x, int y, int width, int height );
|
||||||
virtual void OnInternalIdle();
|
virtual void OnInternalIdle();
|
||||||
|
|
||||||
|
@@ -93,6 +93,10 @@ public:
|
|||||||
// implementation from now on
|
// implementation from now on
|
||||||
// --------------------------
|
// --------------------------
|
||||||
|
|
||||||
|
// move the window to the specified location and resize it: this is called
|
||||||
|
// from both DoSetSize() and DoSetClientSize()
|
||||||
|
virtual void DoMoveWindow(int x, int y, int width, int height);
|
||||||
|
|
||||||
// GTK callbacks
|
// GTK callbacks
|
||||||
virtual void GtkOnSize( int x, int y, int width, int height );
|
virtual void GtkOnSize( int x, int y, int width, int height );
|
||||||
virtual void OnInternalIdle();
|
virtual void OnInternalIdle();
|
||||||
|
@@ -104,6 +104,10 @@ public:
|
|||||||
// implementation
|
// implementation
|
||||||
// --------------
|
// --------------
|
||||||
|
|
||||||
|
// move the window to the specified location and resize it: this is called
|
||||||
|
// from both DoSetSize() and DoSetClientSize()
|
||||||
|
virtual void DoMoveWindow(int x, int y, int width, int height);
|
||||||
|
|
||||||
virtual WXWidget GetHandle() const { return m_widget; }
|
virtual WXWidget GetHandle() const { return m_widget; }
|
||||||
|
|
||||||
// also sets the global flag
|
// also sets the global flag
|
||||||
|
@@ -470,6 +470,11 @@ void wxDialog::OnSize( wxSizeEvent &WXUNUSED(event) )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxDialog::DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y), int WXUNUSED(width), int WXUNUSED(height) )
|
||||||
|
{
|
||||||
|
wxFAIL_MSG( wxT("DoMoveWindow called for wxDialog") );
|
||||||
|
}
|
||||||
|
|
||||||
void wxDialog::DoSetSize( int x, int y, int width, int height, int sizeFlags )
|
void wxDialog::DoSetSize( int x, int y, int width, int height, int sizeFlags )
|
||||||
{
|
{
|
||||||
wxASSERT_MSG( (m_widget != NULL), wxT("invalid dialog") );
|
wxASSERT_MSG( (m_widget != NULL), wxT("invalid dialog") );
|
||||||
|
@@ -532,6 +532,11 @@ bool wxFrame::Show( bool show )
|
|||||||
return wxWindow::Show( show );
|
return wxWindow::Show( show );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxFrame::DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y), int WXUNUSED(width), int WXUNUSED(height) )
|
||||||
|
{
|
||||||
|
wxFAIL_MSG( wxT("DoMoveWindow called for wxFrame") );
|
||||||
|
}
|
||||||
|
|
||||||
void wxFrame::DoSetSize( int x, int y, int width, int height, int sizeFlags )
|
void wxFrame::DoSetSize( int x, int y, int width, int height, int sizeFlags )
|
||||||
{
|
{
|
||||||
wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") );
|
wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") );
|
||||||
|
@@ -2203,6 +2203,11 @@ bool wxWindow::Destroy()
|
|||||||
return wxWindowBase::Destroy();
|
return wxWindowBase::Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxWindow::DoMoveWindow(int x, int y, int width, int height)
|
||||||
|
{
|
||||||
|
gtk_pizza_set_size( GTK_PIZZA(m_parent->m_wxwindow), m_widget, x, y, width, height );
|
||||||
|
}
|
||||||
|
|
||||||
void wxWindow::DoSetSize( int x, int y, int width, int height, int sizeFlags )
|
void wxWindow::DoSetSize( int x, int y, int width, int height, int sizeFlags )
|
||||||
{
|
{
|
||||||
wxASSERT_MSG( (m_widget != NULL), wxT("invalid window") );
|
wxASSERT_MSG( (m_widget != NULL), wxT("invalid window") );
|
||||||
@@ -2263,12 +2268,10 @@ void wxWindow::DoSetSize( int x, int y, int width, int height, int sizeFlags )
|
|||||||
bottom_border = 5;
|
bottom_border = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_pizza_set_size( GTK_PIZZA(m_parent->m_wxwindow),
|
DoMoveWindow( m_x-border,
|
||||||
m_widget,
|
m_y-border,
|
||||||
m_x-border,
|
m_width+2*border,
|
||||||
m_y-border,
|
m_height+border+bottom_border );
|
||||||
m_width+2*border,
|
|
||||||
m_height+border+bottom_border );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -470,6 +470,11 @@ void wxDialog::OnSize( wxSizeEvent &WXUNUSED(event) )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxDialog::DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y), int WXUNUSED(width), int WXUNUSED(height) )
|
||||||
|
{
|
||||||
|
wxFAIL_MSG( wxT("DoMoveWindow called for wxDialog") );
|
||||||
|
}
|
||||||
|
|
||||||
void wxDialog::DoSetSize( int x, int y, int width, int height, int sizeFlags )
|
void wxDialog::DoSetSize( int x, int y, int width, int height, int sizeFlags )
|
||||||
{
|
{
|
||||||
wxASSERT_MSG( (m_widget != NULL), wxT("invalid dialog") );
|
wxASSERT_MSG( (m_widget != NULL), wxT("invalid dialog") );
|
||||||
|
@@ -532,6 +532,11 @@ bool wxFrame::Show( bool show )
|
|||||||
return wxWindow::Show( show );
|
return wxWindow::Show( show );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxFrame::DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y), int WXUNUSED(width), int WXUNUSED(height) )
|
||||||
|
{
|
||||||
|
wxFAIL_MSG( wxT("DoMoveWindow called for wxFrame") );
|
||||||
|
}
|
||||||
|
|
||||||
void wxFrame::DoSetSize( int x, int y, int width, int height, int sizeFlags )
|
void wxFrame::DoSetSize( int x, int y, int width, int height, int sizeFlags )
|
||||||
{
|
{
|
||||||
wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") );
|
wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") );
|
||||||
|
@@ -2203,6 +2203,11 @@ bool wxWindow::Destroy()
|
|||||||
return wxWindowBase::Destroy();
|
return wxWindowBase::Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxWindow::DoMoveWindow(int x, int y, int width, int height)
|
||||||
|
{
|
||||||
|
gtk_pizza_set_size( GTK_PIZZA(m_parent->m_wxwindow), m_widget, x, y, width, height );
|
||||||
|
}
|
||||||
|
|
||||||
void wxWindow::DoSetSize( int x, int y, int width, int height, int sizeFlags )
|
void wxWindow::DoSetSize( int x, int y, int width, int height, int sizeFlags )
|
||||||
{
|
{
|
||||||
wxASSERT_MSG( (m_widget != NULL), wxT("invalid window") );
|
wxASSERT_MSG( (m_widget != NULL), wxT("invalid window") );
|
||||||
@@ -2263,12 +2268,10 @@ void wxWindow::DoSetSize( int x, int y, int width, int height, int sizeFlags )
|
|||||||
bottom_border = 5;
|
bottom_border = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_pizza_set_size( GTK_PIZZA(m_parent->m_wxwindow),
|
DoMoveWindow( m_x-border,
|
||||||
m_widget,
|
m_y-border,
|
||||||
m_x-border,
|
m_width+2*border,
|
||||||
m_y-border,
|
m_height+border+bottom_border );
|
||||||
m_width+2*border,
|
|
||||||
m_height+border+bottom_border );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user