Fixed sash window colour (highlight wasn't showing up); Dialog Editor fix
for space distribution git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -72,7 +72,7 @@ printf()}.
|
||||
Moreover {\it wxMSW} doesn't have a {\bf console} as you may have with {\it
|
||||
wxGTK}. Under {\it wxMSW}, a call using {\it cout} just goes nowhere. To
|
||||
cope with this problem, {\it wxWindows} provides a way to redirect {\it cout}
|
||||
calls to \helpref{wxTreeCtrl}{wxtreectrl}, {\it i.e.}:
|
||||
calls to \helpref{wxTextCtrl}{wxtextctrl}, {\it i.e.}:
|
||||
{\small
|
||||
\begin{verbatim}
|
||||
wxLogWindow *logger=new wxLogWindow(your_frame,"Logger");
|
||||
|
@@ -653,6 +653,8 @@ bool wxPrintPreviewBase::PaintPage(wxWindow *canvas, wxDC& dc)
|
||||
|
||||
bool wxPrintPreviewBase::RenderPage(int pageNum)
|
||||
{
|
||||
wxBusyCursor busy;
|
||||
|
||||
int canvasWidth, canvasHeight;
|
||||
|
||||
if (!m_previewCanvas)
|
||||
|
@@ -476,9 +476,9 @@ void wxSashWindow::DrawSash(wxSashEdgePosition edge, wxDC& dc)
|
||||
}
|
||||
else
|
||||
{
|
||||
// Draw a light grey line on the right to indicate that the
|
||||
// Draw a highlight line on the right to indicate that the
|
||||
// sash is raised
|
||||
dc.SetPen(lightShadowPen);
|
||||
dc.SetPen(hilightPen);
|
||||
dc.DrawLine(w - GetEdgeMargin(edge), 0, w - GetEdgeMargin(edge), h);
|
||||
}
|
||||
}
|
||||
@@ -499,9 +499,9 @@ void wxSashWindow::DrawSash(wxSashEdgePosition edge, wxDC& dc)
|
||||
{
|
||||
if (edge == wxSASH_BOTTOM)
|
||||
{
|
||||
// Draw a light grey line on the bottom to indicate that the
|
||||
// Draw a highlight line on the bottom to indicate that the
|
||||
// sash is raised
|
||||
dc.SetPen(lightShadowPen);
|
||||
dc.SetPen(hilightPen);
|
||||
dc.DrawLine(0, h - GetEdgeMargin(edge), w, h - GetEdgeMargin(edge));
|
||||
}
|
||||
else
|
||||
|
@@ -13,8 +13,8 @@ WIN95FLAG = -D__WIN95__ -D__WINDOWS__
|
||||
# Ilink32 is available on BC++ 5.02 and above, and all
|
||||
# versions of C++ Builder.
|
||||
!ifndef LINK
|
||||
#LINK=ilink32
|
||||
LINK=tlink32
|
||||
LINK=ilink32
|
||||
#LINK=tlink32
|
||||
!endif
|
||||
|
||||
!ifndef FINAL
|
||||
|
@@ -20,18 +20,19 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
// Watcom C++ gives a linker error if this is compiled in.
|
||||
// With Borland C++, all samples crash if this is compiled in.
|
||||
#if !defined(__WATCOMC__) && !(defined(__BORLANDC__) && (__BORLANDC__ < 0x500))
|
||||
|
||||
#include "wx/log.h"
|
||||
#include "wx/msw/ole/automtn.h"
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
#include <math.h>
|
||||
#include <time.h>
|
||||
|
||||
// Watcom C++ gives a linker error if this is compiled in.
|
||||
#ifndef __WATCOMC__
|
||||
|
||||
#include "wx/msw/ole/automtn.h"
|
||||
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
#include <wtypes.h>
|
||||
#include <unknwn.h>
|
||||
#include <ole2.h>
|
||||
|
@@ -949,6 +949,7 @@ bool wxTextCtrl::MSWCommand(WXUINT param, WXWORD WXUNUSED(id))
|
||||
case EN_ERRSPACE:
|
||||
case EN_HSCROLL:
|
||||
case EN_VSCROLL:
|
||||
return FALSE;
|
||||
default:
|
||||
return FALSE;
|
||||
}
|
||||
|
@@ -1552,15 +1552,15 @@ void wxResourceManager::DistributePositions(int command)
|
||||
|
||||
item->Move(controlX, controlY);
|
||||
|
||||
int resX = resource->GetWidth();
|
||||
int resY = resource->GetHeight();
|
||||
int resX = controlX;
|
||||
int resY = controlY;
|
||||
|
||||
// Also update the associated resource
|
||||
// We need to convert to dialog units if this is not a dialog or panel, but
|
||||
// the parent resource specifies dialog units.
|
||||
if (parentResource->GetResourceStyle() & wxRESOURCE_DIALOG_UNITS)
|
||||
{
|
||||
wxPoint convertedPos = item->GetParent()->ConvertPixelsToDialog(wxPoint(pos.x, pos.y));
|
||||
wxPoint convertedPos = item->GetParent()->ConvertPixelsToDialog(wxPoint(resX, resY));
|
||||
resX = convertedPos.x;
|
||||
resY = convertedPos.y;
|
||||
}
|
||||
|
Reference in New Issue
Block a user