Small Tex2RTF fixes; wxMotif compile fixes (motif.inc, wxCheckListBox);
wxMSW wxWindow::IsShown fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,11 +1,28 @@
|
|||||||
wxWindows 2 Change Log
|
wxWindows 2 Change Log
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
Beta 4, February 1999
|
Beta 5, February ?? 1999
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
wxGTK:
|
wxGTK:
|
||||||
|
|
||||||
|
|
||||||
|
wxMSW:
|
||||||
|
|
||||||
|
- Fixed wxWindow::IsShown (::IsWindowVisible doesn't behave as
|
||||||
|
expected).
|
||||||
|
|
||||||
|
wxMotif:
|
||||||
|
|
||||||
|
|
||||||
|
General:
|
||||||
|
|
||||||
|
|
||||||
|
Beta 4, February 12th 1999
|
||||||
|
--------------------------
|
||||||
|
|
||||||
|
wxGTK:
|
||||||
|
|
||||||
- Miscellaneous fixes.
|
- Miscellaneous fixes.
|
||||||
|
|
||||||
wxMSW:
|
wxMSW:
|
||||||
|
@@ -481,7 +481,7 @@ Sets an event handler to be called when a socket event occured.
|
|||||||
|
|
||||||
Constructs a new wxSocketClient.
|
Constructs a new wxSocketClient.
|
||||||
|
|
||||||
{\bf Warning !} The created socket client needs to be registered to a socket handler (See \helpref{wxSocketHandler}{wxsockethandler}).
|
{\bf Warning !} The new socket client needs to be registered to a socket handler (See \helpref{wxSocketHandler}{wxsockethandler}).
|
||||||
|
|
||||||
\wxheading{Parameters}
|
\wxheading{Parameters}
|
||||||
|
|
||||||
@@ -494,7 +494,7 @@ Constructs a new wxSocketClient.
|
|||||||
|
|
||||||
\func{}{\destruct{wxSocketClient}}{\void}
|
\func{}{\destruct{wxSocketClient}}{\void}
|
||||||
|
|
||||||
Destructs a wxSocketClient object.
|
Destroys a wxSocketClient object.
|
||||||
|
|
||||||
%
|
%
|
||||||
% Connect
|
% Connect
|
||||||
@@ -609,7 +609,7 @@ many sockets.
|
|||||||
|
|
||||||
\func{}{\destruct{wxSocketHandler}}{\void}
|
\func{}{\destruct{wxSocketHandler}}{\void}
|
||||||
|
|
||||||
Destructs a wxSocketHandler object.
|
Destroys a wxSocketHandler object.
|
||||||
|
|
||||||
%
|
%
|
||||||
% Register
|
% Register
|
||||||
@@ -763,7 +763,7 @@ Constructs a new wxSocketServer.
|
|||||||
|
|
||||||
\func{}{\destruct{wxSocketServer}}{\void}
|
\func{}{\destruct{wxSocketServer}}{\void}
|
||||||
|
|
||||||
Destructs a wxSocketServer object (it doesn't close the accepted connection).
|
Destroys a wxSocketServer object (it doesn't close the accepted connection).
|
||||||
|
|
||||||
%
|
%
|
||||||
% Accept
|
% Accept
|
||||||
@@ -800,4 +800,3 @@ This is useful when someone wants to inherit wxSocketBase.
|
|||||||
|
|
||||||
Returns TRUE if no error occurs, else FALSE.
|
Returns TRUE if no error occurs, else FALSE.
|
||||||
|
|
||||||
|
|
||||||
|
@@ -14,6 +14,7 @@
|
|||||||
\wxheading{Remark}
|
\wxheading{Remark}
|
||||||
|
|
||||||
You can create a similar stream by this way:
|
You can create a similar stream by this way:
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
wxStreamBuffer *sb = new wxStreamBuffer(wxStreamBuffer::read);
|
wxStreamBuffer *sb = new wxStreamBuffer(wxStreamBuffer::read);
|
||||||
wxInputStream *input = new wxInputStream(sb);
|
wxInputStream *input = new wxInputStream(sb);
|
||||||
@@ -52,10 +53,10 @@ Destructor.
|
|||||||
|
|
||||||
\helpref{wxStreamBuffer}{wxstreamBuffer}
|
\helpref{wxStreamBuffer}{wxstreamBuffer}
|
||||||
|
|
||||||
|
|
||||||
\wxheading{Remark}
|
\wxheading{Remark}
|
||||||
|
|
||||||
You can create a similar stream by this way:
|
You can create a similar stream by this way:
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
wxStreamBuffer *sb = new wxStreamBuffer(wxStreamBuffer::write);
|
wxStreamBuffer *sb = new wxStreamBuffer(wxStreamBuffer::write);
|
||||||
wxOutputStream *input = new wxOutputStream(sb);
|
wxOutputStream *input = new wxOutputStream(sb);
|
||||||
@@ -67,6 +68,7 @@ You can create a similar stream by this way:
|
|||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
|
||||||
This way is also useful to create read/write memory stream:
|
This way is also useful to create read/write memory stream:
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
wxStreamBuffer *sb = new wxStreamBuffer(wxStreamBuffer::read\_write);
|
wxStreamBuffer *sb = new wxStreamBuffer(wxStreamBuffer::read\_write);
|
||||||
wxOutputStream *output = new wxOutputStream(sb);
|
wxOutputStream *output = new wxOutputStream(sb);
|
||||||
@@ -100,3 +102,4 @@ stream.
|
|||||||
\func{}{\destruct{wxMemoryOutputStream}}{\void}
|
\func{}{\destruct{wxMemoryOutputStream}}{\void}
|
||||||
|
|
||||||
Destructor.
|
Destructor.
|
||||||
|
|
||||||
|
@@ -201,6 +201,7 @@ typedef int wxWindowID;
|
|||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
|
|
||||||
|
/*
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
|
|
||||||
# ifdef WXMAKINGDLL
|
# ifdef WXMAKINGDLL
|
||||||
@@ -218,14 +219,18 @@ typedef int wxWindowID;
|
|||||||
# endif
|
# endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
*/
|
||||||
|
|
||||||
|
// _declspec works in BC++ 5 and later, as well as VC++
|
||||||
|
#if defined(__VISUALC__) || defined(__BORLANDC__)
|
||||||
|
|
||||||
# ifdef WXMAKINGDLL
|
# ifdef WXMAKINGDLL
|
||||||
# define WXDLLEXPORT __declspec( dllexport )
|
# define WXDLLEXPORT _declspec( dllexport )
|
||||||
# define WXDLLEXPORT_DATA(type) __declspec( dllexport ) type
|
# define WXDLLEXPORT_DATA(type) _declspec( dllexport ) type
|
||||||
# define WXDLLEXPORT_CTORFN // __declspec( dllexport )
|
# define WXDLLEXPORT_CTORFN
|
||||||
# elif defined(WXUSINGDLL)
|
# elif defined(WXUSINGDLL)
|
||||||
# define WXDLLEXPORT __declspec( dllimport )
|
# define WXDLLEXPORT _declspec( dllimport )
|
||||||
# define WXDLLEXPORT_DATA(type) __declspec( dllimport ) type
|
# define WXDLLEXPORT_DATA(type) _declspec( dllimport ) type
|
||||||
# define WXDLLEXPORT_CTORFN
|
# define WXDLLEXPORT_CTORFN
|
||||||
# else
|
# else
|
||||||
# define WXDLLEXPORT
|
# define WXDLLEXPORT
|
||||||
@@ -233,6 +238,10 @@ typedef int wxWindowID;
|
|||||||
# define WXDLLEXPORT_CTORFN
|
# define WXDLLEXPORT_CTORFN
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
#else
|
||||||
|
# define WXDLLEXPORT
|
||||||
|
# define WXDLLEXPORT_DATA(type) type
|
||||||
|
# define WXDLLEXPORT_CTORFN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
#define _WX_DATAOBJ_H_
|
#define _WX_DATAOBJ_H_
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma interface
|
#pragma interface "dataobj.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/defs.h"
|
#include "wx/defs.h"
|
||||||
|
@@ -222,7 +222,7 @@ bool wxGenericGrid::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos,
|
|||||||
m_hScrollBar = new wxScrollBar(this, wxGRID_HSCROLL, wxPoint(0, 0), wxSize(20, 100), wxHORIZONTAL);
|
m_hScrollBar = new wxScrollBar(this, wxGRID_HSCROLL, wxPoint(0, 0), wxSize(20, 100), wxHORIZONTAL);
|
||||||
m_vScrollBar = new wxScrollBar(this, wxGRID_VSCROLL, wxPoint(0, 0), wxSize(100, 20), wxVERTICAL);
|
m_vScrollBar = new wxScrollBar(this, wxGRID_VSCROLL, wxPoint(0, 0), wxSize(100, 20), wxVERTICAL);
|
||||||
|
|
||||||
SetSize(-1, -1, size.x, size.y);
|
// SetSize(pos.x, pos.y, size.x, size.y);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@@ -83,6 +83,7 @@ LIB_CPP_SRC=\
|
|||||||
motif/combobox.cpp \
|
motif/combobox.cpp \
|
||||||
motif/cursor.cpp \
|
motif/cursor.cpp \
|
||||||
motif/data.cpp \
|
motif/data.cpp \
|
||||||
|
motif/dataobj.cpp \
|
||||||
motif/dc.cpp \
|
motif/dc.cpp \
|
||||||
motif/dcclient.cpp \
|
motif/dcclient.cpp \
|
||||||
motif/dcmemory.cpp \
|
motif/dcmemory.cpp \
|
||||||
|
@@ -319,8 +319,6 @@ bool wxApp::RegisterWindowClasses()
|
|||||||
// Register the panel window class.
|
// Register the panel window class.
|
||||||
WNDCLASS wndclass2; // Structure used to register Windows class.
|
WNDCLASS wndclass2; // Structure used to register Windows class.
|
||||||
memset(&wndclass2, 0, sizeof(WNDCLASS)); // start with NULL defaults
|
memset(&wndclass2, 0, sizeof(WNDCLASS)); // start with NULL defaults
|
||||||
// Use CS_OWNDC to avoid messing about restoring the context
|
|
||||||
// for every graphic operation.
|
|
||||||
wndclass2.style = CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS ;
|
wndclass2.style = CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS ;
|
||||||
wndclass2.lpfnWndProc = (WNDPROC)wxWndProc;
|
wndclass2.lpfnWndProc = (WNDPROC)wxWndProc;
|
||||||
wndclass2.cbClsExtra = 0;
|
wndclass2.cbClsExtra = 0;
|
||||||
|
@@ -792,6 +792,7 @@ void wxRadioBox::SetFocus(void)
|
|||||||
|
|
||||||
bool wxRadioBox::Show(bool show)
|
bool wxRadioBox::Show(bool show)
|
||||||
{
|
{
|
||||||
|
m_isShown = show;
|
||||||
int cshow;
|
int cshow;
|
||||||
if (show)
|
if (show)
|
||||||
cshow = SW_SHOW;
|
cshow = SW_SHOW;
|
||||||
|
@@ -770,13 +770,14 @@ void wxWindow::AdjustForParentClientOrigin(int& x, int& y, int sizeFlags)
|
|||||||
|
|
||||||
bool wxWindow::Show(bool show)
|
bool wxWindow::Show(bool show)
|
||||||
{
|
{
|
||||||
|
m_isShown = show;
|
||||||
HWND hWnd = (HWND) GetHWND();
|
HWND hWnd = (HWND) GetHWND();
|
||||||
int cshow;
|
int cshow;
|
||||||
if (show)
|
if (show)
|
||||||
cshow = SW_SHOW;
|
cshow = SW_SHOW;
|
||||||
else
|
else
|
||||||
cshow = SW_HIDE;
|
cshow = SW_HIDE;
|
||||||
ShowWindow(hWnd, (BOOL)cshow);
|
ShowWindow(hWnd, cshow);
|
||||||
if (show)
|
if (show)
|
||||||
{
|
{
|
||||||
BringWindowToTop(hWnd);
|
BringWindowToTop(hWnd);
|
||||||
@@ -788,7 +789,11 @@ bool wxWindow::Show(bool show)
|
|||||||
|
|
||||||
bool wxWindow::IsShown(void) const
|
bool wxWindow::IsShown(void) const
|
||||||
{
|
{
|
||||||
return (::IsWindowVisible((HWND) GetHWND()) != 0);
|
// Can't rely on IsWindowVisible, since it will return FALSE
|
||||||
|
// if the parent is not visible.
|
||||||
|
return m_isShown;
|
||||||
|
// int ret = ::IsWindowVisible((HWND) GetHWND()) ;
|
||||||
|
// return (ret != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int wxWindow::GetCharHeight(void) const
|
int wxWindow::GetCharHeight(void) const
|
||||||
|
@@ -536,8 +536,8 @@ bool WriteHPJ(char *filename)
|
|||||||
if (!helpTitle)
|
if (!helpTitle)
|
||||||
helpTitle = "Untitled";
|
helpTitle = "Untitled";
|
||||||
|
|
||||||
char *thePath = wxPathOnly(InputFile);
|
wxString thePath = wxPathOnly(InputFile);
|
||||||
if (!thePath)
|
if (thePath.IsEmpty())
|
||||||
thePath = ".";
|
thePath = ".";
|
||||||
fprintf(fd, "[OPTIONS]\n");
|
fprintf(fd, "[OPTIONS]\n");
|
||||||
fprintf(fd, "BMROOT=%s ; Assume that bitmaps are where the source is\n", thePath);
|
fprintf(fd, "BMROOT=%s ; Assume that bitmaps are where the source is\n", thePath);
|
||||||
|
@@ -647,7 +647,7 @@ void ChooseOutputFile(bool force)
|
|||||||
char extensionBuf[10];
|
char extensionBuf[10];
|
||||||
char wildBuf[10];
|
char wildBuf[10];
|
||||||
strcpy(wildBuf, "*.");
|
strcpy(wildBuf, "*.");
|
||||||
char *path = NULL;
|
wxString path;
|
||||||
if (OutputFile)
|
if (OutputFile)
|
||||||
path = wxPathOnly(OutputFile);
|
path = wxPathOnly(OutputFile);
|
||||||
else if (InputFile)
|
else if (InputFile)
|
||||||
|
Reference in New Issue
Block a user