*** empty log message ***
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -52,6 +52,8 @@ protected:
|
|||||||
|
|
||||||
#if defined(__WXMSW__) && defined(__WIN32__)
|
#if defined(__WXMSW__) && defined(__WIN32__)
|
||||||
#include "wx/msw/spinctrl.h"
|
#include "wx/msw/spinctrl.h"
|
||||||
|
#elif defined(__WXPM__)
|
||||||
|
#include "wx/os2/spinctrl.h"
|
||||||
#elif defined(__WXGTK__)
|
#elif defined(__WXGTK__)
|
||||||
#include "wx/gtk/spinctrl.h"
|
#include "wx/gtk/spinctrl.h"
|
||||||
#else // Win16 || !Win
|
#else // Win16 || !Win
|
||||||
|
@@ -29,12 +29,6 @@ wxWindowList wxTopLevelWindows;
|
|||||||
// List of windows pending deletion
|
// List of windows pending deletion
|
||||||
wxList WXDLLEXPORT wxPendingDelete;
|
wxList WXDLLEXPORT wxPendingDelete;
|
||||||
|
|
||||||
// List of events pending processing
|
|
||||||
#if wxUSE_THREADS
|
|
||||||
wxList *wxPendingEvents = NULL;
|
|
||||||
wxCriticalSection *wxPendingEventsLocker = NULL;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Current cursor, in order to hang on to
|
// Current cursor, in order to hang on to
|
||||||
// cursor handle when setting the cursor globally
|
// cursor handle when setting the cursor globally
|
||||||
wxCursor *g_globalCursor = NULL;
|
wxCursor *g_globalCursor = NULL;
|
||||||
|
@@ -44,8 +44,11 @@ public:
|
|||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HRGN m_region;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define M_REGION (((wxRegionRefData*)m_refData)->m_region)
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// wxRegion
|
// wxRegion
|
||||||
@@ -224,11 +227,12 @@ bool wxRegion::Empty() const
|
|||||||
// Does the region contain the point (x,y)?
|
// Does the region contain the point (x,y)?
|
||||||
wxRegionContain wxRegion::Contains(long x, long y) const
|
wxRegionContain wxRegion::Contains(long x, long y) const
|
||||||
{
|
{
|
||||||
|
bool bOK = FALSE; // temporary
|
||||||
if (!m_refData)
|
if (!m_refData)
|
||||||
return wxOutRegion;
|
return wxOutRegion;
|
||||||
|
|
||||||
// TODO. Return wxInRegion if within region.
|
// TODO. Return wxInRegion if within region.
|
||||||
if (0)
|
if (bOK)
|
||||||
return wxInRegion;
|
return wxInRegion;
|
||||||
return wxOutRegion;
|
return wxOutRegion;
|
||||||
}
|
}
|
||||||
@@ -236,11 +240,12 @@ wxRegionContain wxRegion::Contains(long x, long y) const
|
|||||||
// Does the region contain the point pt?
|
// Does the region contain the point pt?
|
||||||
wxRegionContain wxRegion::Contains(const wxPoint& pt) const
|
wxRegionContain wxRegion::Contains(const wxPoint& pt) const
|
||||||
{
|
{
|
||||||
|
bool bOK = FALSE; // temporary
|
||||||
if (!m_refData)
|
if (!m_refData)
|
||||||
return wxOutRegion;
|
return wxOutRegion;
|
||||||
|
|
||||||
// TODO. Return wxInRegion if within region.
|
// TODO. Return wxInRegion if within region.
|
||||||
if (0)
|
if (bOK)
|
||||||
return wxInRegion;
|
return wxInRegion;
|
||||||
else
|
else
|
||||||
return wxOutRegion;
|
return wxOutRegion;
|
||||||
@@ -249,11 +254,12 @@ wxRegionContain wxRegion::Contains(const wxPoint& pt) const
|
|||||||
// Does the region contain the rectangle (x, y, w, h)?
|
// Does the region contain the rectangle (x, y, w, h)?
|
||||||
wxRegionContain wxRegion::Contains(long x, long y, long w, long h) const
|
wxRegionContain wxRegion::Contains(long x, long y, long w, long h) const
|
||||||
{
|
{
|
||||||
|
bool bOK = FALSE; // temporary
|
||||||
if (!m_refData)
|
if (!m_refData)
|
||||||
return wxOutRegion;
|
return wxOutRegion;
|
||||||
|
|
||||||
// TODO. Return wxInRegion if within region.
|
// TODO. Return wxInRegion if within region.
|
||||||
if (0)
|
if (bOK)
|
||||||
return wxInRegion;
|
return wxInRegion;
|
||||||
else
|
else
|
||||||
return wxOutRegion;
|
return wxOutRegion;
|
||||||
|
@@ -83,6 +83,8 @@ bool wxScrollBar::Create(wxWindow *parent, wxWindowID id,
|
|||||||
|
|
||||||
m_hWnd = 0; // TODO: (WXHWND)scroll_bar;
|
m_hWnd = 0; // TODO: (WXHWND)scroll_bar;
|
||||||
|
|
||||||
|
HWND scroll_bar = 0; // temporary
|
||||||
|
|
||||||
// Subclass again for purposes of dialog editing mode
|
// Subclass again for purposes of dialog editing mode
|
||||||
SubclassWin((WXHWND) scroll_bar);
|
SubclassWin((WXHWND) scroll_bar);
|
||||||
|
|
||||||
|
@@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#if !USE_SHARED_LIBRARY
|
#if !USE_SHARED_LIBRARY
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxSlider, wxControl)
|
IMPLEMENT_DYNAMIC_CLASS(wxSlider, wxControl)
|
||||||
|
#endif
|
||||||
|
|
||||||
// Slider
|
// Slider
|
||||||
wxSlider::wxSlider()
|
wxSlider::wxSlider()
|
||||||
@@ -140,6 +141,7 @@ bool wxSlider::OS2OnScroll(int WXUNUSED(orientation), WXWORD wParam,
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
int newPos = 0; //temporary
|
||||||
SetValue(newPos);
|
SetValue(newPos);
|
||||||
|
|
||||||
wxScrollEvent event(scrollEvent, m_windowId);
|
wxScrollEvent event(scrollEvent, m_windowId);
|
||||||
|
@@ -51,9 +51,6 @@ bool wxSpinButton::Create(
|
|||||||
|
|
||||||
SetParent(parent);
|
SetParent(parent);
|
||||||
|
|
||||||
m_min = 0;
|
|
||||||
m_max = 100;
|
|
||||||
|
|
||||||
m_windowId = (id == -1) ? NewControlId() : id;
|
m_windowId = (id == -1) ? NewControlId() : id;
|
||||||
|
|
||||||
// TODO create spin button
|
// TODO create spin button
|
||||||
@@ -150,7 +147,7 @@ bool wxSpinButton::OS2OnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxSpinButton::MSWCommand(WXUINT cmd, WXWORD id)
|
bool wxSpinButton::OS2Command(WXUINT cmd, WXWORD id)
|
||||||
{
|
{
|
||||||
// No command messages
|
// No command messages
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@@ -41,10 +41,14 @@ bool wxStaticBitmap::Create(wxWindow *parent, wxWindowID id,
|
|||||||
long style,
|
long style,
|
||||||
const wxString& name)
|
const wxString& name)
|
||||||
{
|
{
|
||||||
m_messageBitmap = bitmap;
|
Init();
|
||||||
|
|
||||||
SetName(name);
|
SetName(name);
|
||||||
if (parent) parent->AddChild(this);
|
if (parent) parent->AddChild(this);
|
||||||
|
|
||||||
|
m_backgroundColour = parent->GetBackgroundColour() ;
|
||||||
|
m_foregroundColour = parent->GetForegroundColour() ;
|
||||||
|
|
||||||
if ( id == -1 )
|
if ( id == -1 )
|
||||||
m_windowId = (int)NewControlId();
|
m_windowId = (int)NewControlId();
|
||||||
else
|
else
|
||||||
@@ -52,7 +56,27 @@ bool wxStaticBitmap::Create(wxWindow *parent, wxWindowID id,
|
|||||||
|
|
||||||
m_windowStyle = style;
|
m_windowStyle = style;
|
||||||
|
|
||||||
|
int x = pos.x;
|
||||||
|
int y = pos.y;
|
||||||
|
int width = size.x;
|
||||||
|
int height = size.y;
|
||||||
|
|
||||||
|
m_windowStyle = style;
|
||||||
|
|
||||||
|
m_isIcon = bitmap.IsKindOf(CLASSINFO(wxIcon));
|
||||||
|
|
||||||
// TODO: create static bitmap control
|
// TODO: create static bitmap control
|
||||||
|
wxCHECK_MSG( m_hWnd, FALSE, wxT("Failed to create static bitmap") );
|
||||||
|
|
||||||
|
SetBitmap(bitmap);
|
||||||
|
|
||||||
|
// Subclass again for purposes of dialog editing mode
|
||||||
|
SubclassWin(m_hWnd);
|
||||||
|
|
||||||
|
SetFont(GetParent()->GetFont());
|
||||||
|
|
||||||
|
SetSize(x, y, width, height);
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -178,6 +178,8 @@ void wxStaticBox::OnEraseBackground(wxEraseEvent& event)
|
|||||||
|
|
||||||
MRESULT wxStaticBox::OS2WindowProc(HWND hwnd, WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
|
MRESULT wxStaticBox::OS2WindowProc(HWND hwnd, WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
|
||||||
{
|
{
|
||||||
|
// TODO:
|
||||||
|
/*
|
||||||
if ( nMsg == WM_NCHITTEST)
|
if ( nMsg == WM_NCHITTEST)
|
||||||
{
|
{
|
||||||
int xPos = LOWORD(lParam); // horizontal position of cursor
|
int xPos = LOWORD(lParam); // horizontal position of cursor
|
||||||
@@ -190,6 +192,7 @@ MRESULT wxStaticBox::OS2WindowProc(HWND hwnd, WXUINT nMsg, WXWPARAM wParam, WXLP
|
|||||||
if (yPos < 10)
|
if (yPos < 10)
|
||||||
return (long)HTCLIENT;
|
return (long)HTCLIENT;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
return wxControl::OS2WindowProc(hwnd, nMsg, wParam, lParam);
|
return wxControl::OS2WindowProc(hwnd, nMsg, wParam, lParam);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user