use the new wxSystemSettings API everywhere
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -106,7 +106,7 @@ bool csApp::CreatePalette(wxFrame *parent)
|
|||||||
win->SetDefaultSize(wxSize(10000, 40));
|
win->SetDefaultSize(wxSize(10000, 40));
|
||||||
win->SetOrientation(wxLAYOUT_HORIZONTAL);
|
win->SetOrientation(wxLAYOUT_HORIZONTAL);
|
||||||
win->SetAlignment(wxLAYOUT_TOP);
|
win->SetAlignment(wxLAYOUT_TOP);
|
||||||
win->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
|
win->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
|
||||||
win->SetSashVisible(wxSASH_BOTTOM, TRUE);
|
win->SetSashVisible(wxSASH_BOTTOM, TRUE);
|
||||||
|
|
||||||
m_diagramPaletteSashWindow = win;
|
m_diagramPaletteSashWindow = win;
|
||||||
|
@@ -57,7 +57,7 @@ bool csApp::CreateProjectWindow(wxFrame *parent)
|
|||||||
win->SetDefaultSize(wxSize(150, 10000));
|
win->SetDefaultSize(wxSize(150, 10000));
|
||||||
win->SetOrientation(wxLAYOUT_VERTICAL);
|
win->SetOrientation(wxLAYOUT_VERTICAL);
|
||||||
win->SetAlignment(wxLAYOUT_LEFT);
|
win->SetAlignment(wxLAYOUT_LEFT);
|
||||||
win->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
|
win->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
|
||||||
win->SetSashVisible(wxSASH_RIGHT, TRUE);
|
win->SetSashVisible(wxSASH_RIGHT, TRUE);
|
||||||
win->SetExtraBorderSize(5);
|
win->SetExtraBorderSize(5);
|
||||||
|
|
||||||
|
@@ -373,7 +373,7 @@ void csApp::CreateDiagramToolBar(wxFrame* parent)
|
|||||||
win->SetDefaultSize(wxSize(10000, 30));
|
win->SetDefaultSize(wxSize(10000, 30));
|
||||||
win->SetOrientation(wxLAYOUT_HORIZONTAL);
|
win->SetOrientation(wxLAYOUT_HORIZONTAL);
|
||||||
win->SetAlignment(wxLAYOUT_TOP);
|
win->SetAlignment(wxLAYOUT_TOP);
|
||||||
win->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
|
win->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
|
||||||
|
|
||||||
m_diagramToolBarSashWindow = win;
|
m_diagramToolBarSashWindow = win;
|
||||||
m_diagramToolBarSashWindow->Show(FALSE);
|
m_diagramToolBarSashWindow->Show(FALSE);
|
||||||
|
@@ -178,7 +178,7 @@ wxBitmap* csSymbolDatabase::CreateToolBitmap(csSymbol* symbol, const wxSize& too
|
|||||||
memDC.SelectObject(*newBitmap);
|
memDC.SelectObject(*newBitmap);
|
||||||
memDC.SetPen(* wxBLACK_PEN);
|
memDC.SetPen(* wxBLACK_PEN);
|
||||||
memDC.SetBrush(* wxWHITE_BRUSH);
|
memDC.SetBrush(* wxWHITE_BRUSH);
|
||||||
memDC.SetBackground(wxBrush(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE), wxSOLID));
|
memDC.SetBackground(wxBrush(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE), wxSOLID));
|
||||||
memDC.SetLogicalFunction(wxCOPY);
|
memDC.SetLogicalFunction(wxCOPY);
|
||||||
memDC.Clear();
|
memDC.Clear();
|
||||||
|
|
||||||
@@ -208,7 +208,7 @@ wxBitmap* csSymbolDatabase::CreateToolBitmap(csSymbol* symbol, const wxSize& too
|
|||||||
|
|
||||||
memDC.SetUserScale(scaleFactor, scaleFactor);
|
memDC.SetUserScale(scaleFactor, scaleFactor);
|
||||||
|
|
||||||
memDC.SetBackground(wxBrush(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE), wxSOLID));
|
memDC.SetBackground(wxBrush(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE), wxSOLID));
|
||||||
memDC.Clear();
|
memDC.Clear();
|
||||||
|
|
||||||
symbol->GetShape()->Show(TRUE);
|
symbol->GetShape()->Show(TRUE);
|
||||||
|
@@ -272,11 +272,11 @@ wxFrameLayout::wxFrameLayout(void)
|
|||||||
: mpFrame ( NULL ),
|
: mpFrame ( NULL ),
|
||||||
mpFrameClient( NULL ),
|
mpFrameClient( NULL ),
|
||||||
|
|
||||||
mDarkPen ( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DSHADOW), 1, wxSOLID ),
|
mDarkPen ( wxSystemSettings::GetColour(wxSYS_COLOUR_3DSHADOW), 1, wxSOLID ),
|
||||||
mLightPen ( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DHILIGHT), 1, wxSOLID ),
|
mLightPen ( wxSystemSettings::GetColour(wxSYS_COLOUR_3DHILIGHT), 1, wxSOLID ),
|
||||||
mGrayPen ( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE), 1, wxSOLID ),
|
mGrayPen ( wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE), 1, wxSOLID ),
|
||||||
mBlackPen ( wxColour( 0, 0, 0), 1, wxSOLID ),
|
mBlackPen ( wxColour( 0, 0, 0), 1, wxSOLID ),
|
||||||
mBorderPen( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE), 1, wxSOLID ),
|
mBorderPen( wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE), 1, wxSOLID ),
|
||||||
|
|
||||||
mNullPen( wxColour(0,0,0), 1, wxTRANSPARENT ),
|
mNullPen( wxColour(0,0,0), 1, wxTRANSPARENT ),
|
||||||
|
|
||||||
@@ -305,11 +305,11 @@ wxFrameLayout::wxFrameLayout( wxWindow* pParentFrame, wxWindow* pFrameClient, bo
|
|||||||
: mpFrame( pParentFrame ),
|
: mpFrame( pParentFrame ),
|
||||||
mpFrameClient(pFrameClient),
|
mpFrameClient(pFrameClient),
|
||||||
|
|
||||||
mDarkPen ( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DSHADOW), 1, wxSOLID ),
|
mDarkPen ( wxSystemSettings::GetColour(wxSYS_COLOUR_3DSHADOW), 1, wxSOLID ),
|
||||||
mLightPen ( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DHILIGHT), 1, wxSOLID ),
|
mLightPen ( wxSystemSettings::GetColour(wxSYS_COLOUR_3DHILIGHT), 1, wxSOLID ),
|
||||||
mGrayPen ( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE), 1, wxSOLID ),
|
mGrayPen ( wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE), 1, wxSOLID ),
|
||||||
mBlackPen ( wxColour( 0, 0, 0), 1, wxSOLID ),
|
mBlackPen ( wxColour( 0, 0, 0), 1, wxSOLID ),
|
||||||
mBorderPen( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE), 1, wxSOLID ),
|
mBorderPen( wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE), 1, wxSOLID ),
|
||||||
|
|
||||||
mNullPen( wxColour(0,0,0), 1, wxTRANSPARENT ),
|
mNullPen( wxColour(0,0,0), 1, wxTRANSPARENT ),
|
||||||
|
|
||||||
@@ -341,7 +341,7 @@ wxFrameLayout::wxFrameLayout( wxWindow* pParentFrame, wxWindow* pFrameClient, bo
|
|||||||
// DBG:: set RED color of frame's background for the
|
// DBG:: set RED color of frame's background for the
|
||||||
// prurpose of tracking engine bugs "visually"
|
// prurpose of tracking engine bugs "visually"
|
||||||
|
|
||||||
GetParentFrame().SetBackgroundColour( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE) );
|
GetParentFrame().SetBackgroundColour( wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE) );
|
||||||
}
|
}
|
||||||
|
|
||||||
mFloatingOn = CanReparent();
|
mFloatingOn = CanReparent();
|
||||||
|
@@ -65,7 +65,7 @@ wxDynamicToolBar::wxDynamicToolBar(wxWindow *parent, const wxWindowID id,
|
|||||||
{
|
{
|
||||||
Create(parent, id, pos, size, style, orientation, RowsOrColumns, name);
|
Create(parent, id, pos, size, style, orientation, RowsOrColumns, name);
|
||||||
|
|
||||||
SetBackgroundColour( wxSystemSettings::GetSystemColour( wxSYS_COLOUR_3DFACE) );
|
SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_3DFACE) );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxDynamicToolBar::Create(wxWindow *parent, const wxWindowID id,
|
bool wxDynamicToolBar::Create(wxWindow *parent, const wxWindowID id,
|
||||||
@@ -80,7 +80,7 @@ bool wxDynamicToolBar::Create(wxWindow *parent, const wxWindowID id,
|
|||||||
if ( ! wxWindow::Create(parent, id, pos, size, style, name) )
|
if ( ! wxWindow::Create(parent, id, pos, size, style, name) )
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
SetBackgroundColour( wxSystemSettings::GetSystemColour( wxSYS_COLOUR_3DFACE ));
|
SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_3DFACE ));
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
@@ -263,7 +263,7 @@ void wxDynamicToolBar::OnEraseBackground( wxEraseEvent& event )
|
|||||||
|
|
||||||
void wxDynamicToolBar::OnSize( wxSizeEvent& event )
|
void wxDynamicToolBar::OnSize( wxSizeEvent& event )
|
||||||
{
|
{
|
||||||
//SetBackgroundColour( wxSystemSettings::GetSystemColour( wxSYS_COLOUR_3DFACE ) );
|
//SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_3DFACE ) );
|
||||||
|
|
||||||
Layout();
|
Layout();
|
||||||
}
|
}
|
||||||
|
@@ -151,8 +151,8 @@ void gray_out_image_on_dc( wxDC& dc, int width, int height )
|
|||||||
wxColour bgCol;
|
wxColour bgCol;
|
||||||
dc.GetPixel( 0, 0, &bgCol );
|
dc.GetPixel( 0, 0, &bgCol );
|
||||||
|
|
||||||
wxPen darkPen ( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DSHADOW),1, wxSOLID );
|
wxPen darkPen ( wxSystemSettings::GetColour(wxSYS_COLOUR_3DSHADOW),1, wxSOLID );
|
||||||
wxPen lightPen( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DHIGHLIGHT),1, wxSOLID );
|
wxPen lightPen( wxSystemSettings::GetColour(wxSYS_COLOUR_3DHIGHLIGHT),1, wxSOLID );
|
||||||
wxPen bgPen ( bgCol, 1, wxSOLID );
|
wxPen bgPen ( bgCol, 1, wxSOLID );
|
||||||
|
|
||||||
int* src = create_array( width, height, MASK_BG );
|
int* src = create_array( width, height, MASK_BG );
|
||||||
@@ -251,9 +251,9 @@ wxNewBitmapButton::wxNewBitmapButton( const wxBitmap& labelBitmap,
|
|||||||
mFiredEventType( firedEventType ),
|
mFiredEventType( firedEventType ),
|
||||||
|
|
||||||
mBlackPen( wxColour( 0, 0, 0), 1, wxSOLID ),
|
mBlackPen( wxColour( 0, 0, 0), 1, wxSOLID ),
|
||||||
mDarkPen ( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DSHADOW), 1, wxSOLID ),
|
mDarkPen ( wxSystemSettings::GetColour(wxSYS_COLOUR_3DSHADOW), 1, wxSOLID ),
|
||||||
mGrayPen ( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE), 1, wxSOLID ),
|
mGrayPen ( wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE), 1, wxSOLID ),
|
||||||
mLightPen( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DHIGHLIGHT), 1, wxSOLID ),
|
mLightPen( wxSystemSettings::GetColour(wxSYS_COLOUR_3DHIGHLIGHT), 1, wxSOLID ),
|
||||||
|
|
||||||
mIsCreated( FALSE ),
|
mIsCreated( FALSE ),
|
||||||
mSizeIsSet( FALSE )
|
mSizeIsSet( FALSE )
|
||||||
@@ -296,9 +296,9 @@ wxNewBitmapButton::wxNewBitmapButton( const wxString& bitmapFileName,
|
|||||||
mFiredEventType( wxEVT_COMMAND_MENU_SELECTED ),
|
mFiredEventType( wxEVT_COMMAND_MENU_SELECTED ),
|
||||||
|
|
||||||
mBlackPen( wxColour( 0, 0, 0), 1, wxSOLID ),
|
mBlackPen( wxColour( 0, 0, 0), 1, wxSOLID ),
|
||||||
mDarkPen ( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DSHADOW), 1, wxSOLID ),
|
mDarkPen ( wxSystemSettings::GetColour(wxSYS_COLOUR_3DSHADOW), 1, wxSOLID ),
|
||||||
mGrayPen ( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE), 1, wxSOLID ),
|
mGrayPen ( wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE), 1, wxSOLID ),
|
||||||
mLightPen( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DHIGHLIGHT), 1, wxSOLID ),
|
mLightPen( wxSystemSettings::GetColour(wxSYS_COLOUR_3DHIGHLIGHT), 1, wxSOLID ),
|
||||||
|
|
||||||
mIsCreated( FALSE ),
|
mIsCreated( FALSE ),
|
||||||
mSizeIsSet( FALSE )
|
mSizeIsSet( FALSE )
|
||||||
@@ -400,7 +400,7 @@ void wxNewBitmapButton::RenderLabelImage( wxBitmap*& destBmp, wxBitmap* srcBmp,
|
|||||||
{
|
{
|
||||||
long txtWidth, txtHeight;
|
long txtWidth, txtHeight;
|
||||||
|
|
||||||
srcDc.SetFont( wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT) );
|
srcDc.SetFont( wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT) );
|
||||||
srcDc.GetTextExtent( mLabelText, &txtWidth, &txtHeight );
|
srcDc.GetTextExtent( mLabelText, &txtWidth, &txtHeight );
|
||||||
|
|
||||||
if ( mTextAlignment == NB_ALIGN_TEXT_RIGHT )
|
if ( mTextAlignment == NB_ALIGN_TEXT_RIGHT )
|
||||||
@@ -446,7 +446,7 @@ void wxNewBitmapButton::RenderLabelImage( wxBitmap*& destBmp, wxBitmap* srcBmp,
|
|||||||
wxMemoryDC destDc;
|
wxMemoryDC destDc;
|
||||||
destDc.SelectObject( *destBmp );
|
destDc.SelectObject( *destBmp );
|
||||||
|
|
||||||
wxBrush grayBrush( wxSystemSettings::GetSystemColour( wxSYS_COLOUR_3DFACE), wxSOLID );
|
wxBrush grayBrush( wxSystemSettings::GetColour( wxSYS_COLOUR_3DFACE), wxSOLID );
|
||||||
wxPen nullPen( wxColour(0,0,0), 1, wxTRANSPARENT );
|
wxPen nullPen( wxColour(0,0,0), 1, wxTRANSPARENT );
|
||||||
|
|
||||||
destDc.SetBrush( grayBrush );
|
destDc.SetBrush( grayBrush );
|
||||||
@@ -483,17 +483,17 @@ void wxNewBitmapButton::RenderLabelImage( wxBitmap*& destBmp, wxBitmap* srcBmp,
|
|||||||
pTopWnd = pParent;
|
pTopWnd = pParent;
|
||||||
} while (1);
|
} while (1);
|
||||||
|
|
||||||
destDc.SetFont( wxSystemSettings::GetSystemFont( wxSYS_DEFAULT_GUI_FONT) );
|
destDc.SetFont( wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT) );
|
||||||
|
|
||||||
if ( isEnabled )
|
if ( isEnabled )
|
||||||
{
|
{
|
||||||
destDc.SetTextForeground( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_BTNTEXT) );
|
destDc.SetTextForeground( wxSystemSettings::GetColour(wxSYS_COLOUR_BTNTEXT) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
destDc.SetTextForeground( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DSHADOW) );
|
destDc.SetTextForeground( wxSystemSettings::GetColour(wxSYS_COLOUR_3DSHADOW) );
|
||||||
}
|
}
|
||||||
destDc.SetTextBackground( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_BTNFACE) );
|
destDc.SetTextBackground( wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE) );
|
||||||
|
|
||||||
destDc.DrawText( mLabelText, txtPos.x, txtPos.y );
|
destDc.DrawText( mLabelText, txtPos.x, txtPos.y );
|
||||||
}
|
}
|
||||||
@@ -533,17 +533,17 @@ void wxNewBitmapButton::RenderLabelImage( wxBitmap*& destBmp, wxBitmap* srcBmp,
|
|||||||
pTopWnd = pParent;
|
pTopWnd = pParent;
|
||||||
} while (1);
|
} while (1);
|
||||||
|
|
||||||
destDc.SetFont( wxSystemSettings::GetSystemFont( wxSYS_DEFAULT_GUI_FONT) );
|
destDc.SetFont( wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT) );
|
||||||
|
|
||||||
if ( isEnabled )
|
if ( isEnabled )
|
||||||
{
|
{
|
||||||
destDc.SetTextForeground( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_BTNTEXT) );
|
destDc.SetTextForeground( wxSystemSettings::GetColour(wxSYS_COLOUR_BTNTEXT) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
destDc.SetTextForeground( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DSHADOW) );
|
destDc.SetTextForeground( wxSystemSettings::GetColour(wxSYS_COLOUR_3DSHADOW) );
|
||||||
}
|
}
|
||||||
destDc.SetTextBackground( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_BTNFACE) );
|
destDc.SetTextBackground( wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE) );
|
||||||
|
|
||||||
destDc.DrawText( mLabelText, txtPos.x, txtPos.y );
|
destDc.DrawText( mLabelText, txtPos.x, txtPos.y );
|
||||||
}
|
}
|
||||||
@@ -554,7 +554,7 @@ void wxNewBitmapButton::RenderLabelImage( wxBitmap*& destBmp, wxBitmap* srcBmp,
|
|||||||
gray_out_image_on_dc( destDc, destDim.x, destDim.y );
|
gray_out_image_on_dc( destDc, destDim.x, destDim.y );
|
||||||
#else
|
#else
|
||||||
wxBrush checkerBrush( wxBitmap( (const char*)_gDisableImage,8,8) );
|
wxBrush checkerBrush( wxBitmap( (const char*)_gDisableImage,8,8) );
|
||||||
checkerBrush.SetColour( wxSystemSettings::GetSystemColour( wxSYS_COLOUR_BTNFACE ) );
|
checkerBrush.SetColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
|
||||||
destDc.SetBrush( checkerBrush );
|
destDc.SetBrush( checkerBrush );
|
||||||
destDc.DrawRectangle( imgPos.x, imgPos.y, srcBmp->GetWidth()+1, srcBmp->GetHeight()+1);
|
destDc.DrawRectangle( imgPos.x, imgPos.y, srcBmp->GetWidth()+1, srcBmp->GetHeight()+1);
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1058,8 +1058,8 @@ void wxDynamicSashWindowLeaf::OnPaint(wxPaintEvent &event) {
|
|||||||
dc.SetBackground(wxBrush(m_impl->m_container->GetBackgroundColour(), wxSOLID));
|
dc.SetBackground(wxBrush(m_impl->m_container->GetBackgroundColour(), wxSOLID));
|
||||||
dc.Clear();
|
dc.Clear();
|
||||||
|
|
||||||
wxPen highlight(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_BTNHIGHLIGHT), 1, wxSOLID);
|
wxPen highlight(wxSystemSettings::GetColour(wxSYS_COLOUR_BTNHIGHLIGHT), 1, wxSOLID);
|
||||||
wxPen shadow(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_BTNSHADOW), 1, wxSOLID);
|
wxPen shadow(wxSystemSettings::GetColour(wxSYS_COLOUR_BTNSHADOW), 1, wxSOLID);
|
||||||
wxPen black(*wxBLACK, 1, wxSOLID);
|
wxPen black(*wxBLACK, 1, wxSOLID);
|
||||||
|
|
||||||
wxSize size = m_impl->m_container->GetSize();
|
wxSize size = m_impl->m_container->GetSize();
|
||||||
|
@@ -56,7 +56,7 @@ public:
|
|||||||
void SizeColumns()
|
void SizeColumns()
|
||||||
{
|
{
|
||||||
int w = GetSize().x;
|
int w = GetSize().x;
|
||||||
w -= wxSystemSettings::GetSystemMetric(wxSYS_VSCROLL_X) + 6;
|
w -= wxSystemSettings::GetMetric(wxSYS_VSCROLL_X) + 6;
|
||||||
SetColumnWidth(0, w);
|
SetColumnWidth(0, w);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -265,7 +265,7 @@ void wxRemotelyScrolledTreeCtrl::OnPaint(wxPaintEvent& event)
|
|||||||
// Reset the device origin since it may have been set
|
// Reset the device origin since it may have been set
|
||||||
dc.SetDeviceOrigin(0, 0);
|
dc.SetDeviceOrigin(0, 0);
|
||||||
|
|
||||||
wxPen pen(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DLIGHT), 1, wxSOLID);
|
wxPen pen(wxSystemSettings::GetColour(wxSYS_COLOUR_3DLIGHT), 1, wxSOLID);
|
||||||
dc.SetPen(pen);
|
dc.SetPen(pen);
|
||||||
dc.SetBrush(* wxTRANSPARENT_BRUSH);
|
dc.SetBrush(* wxTRANSPARENT_BRUSH);
|
||||||
|
|
||||||
@@ -473,10 +473,10 @@ void wxTreeCompanionWindow::OnPaint(wxPaintEvent& event)
|
|||||||
if (!m_treeCtrl)
|
if (!m_treeCtrl)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
wxPen pen(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DLIGHT), 1, wxSOLID);
|
wxPen pen(wxSystemSettings::GetColour(wxSYS_COLOUR_3DLIGHT), 1, wxSOLID);
|
||||||
dc.SetPen(pen);
|
dc.SetPen(pen);
|
||||||
dc.SetBrush(* wxTRANSPARENT_BRUSH);
|
dc.SetBrush(* wxTRANSPARENT_BRUSH);
|
||||||
wxFont font(wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT));
|
wxFont font(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
|
||||||
dc.SetFont(font);
|
dc.SetFont(font);
|
||||||
|
|
||||||
wxSize clientSize = GetClientSize();
|
wxSize clientSize = GetClientSize();
|
||||||
|
@@ -575,13 +575,13 @@ void Menu::Show(Point pt, Window &w) {
|
|||||||
|
|
||||||
Colour Platform::Chrome() {
|
Colour Platform::Chrome() {
|
||||||
wxColour c;
|
wxColour c;
|
||||||
c = wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE);
|
c = wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE);
|
||||||
return Colour(c.Red(), c.Green(), c.Blue());
|
return Colour(c.Red(), c.Green(), c.Blue());
|
||||||
}
|
}
|
||||||
|
|
||||||
Colour Platform::ChromeHighlight() {
|
Colour Platform::ChromeHighlight() {
|
||||||
wxColour c;
|
wxColour c;
|
||||||
c = wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DHIGHLIGHT);
|
c = wxSystemSettings::GetColour(wxSYS_COLOUR_3DHIGHLIGHT);
|
||||||
return Colour(c.Red(), c.Green(), c.Blue());
|
return Colour(c.Red(), c.Green(), c.Blue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -424,10 +424,10 @@ void wxTreeCompanionWindow::OnPaint(wxPaintEvent& event)
|
|||||||
if (!m_treeCtrl)
|
if (!m_treeCtrl)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
wxPen pen(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DLIGHT), 1, wxSOLID);
|
wxPen pen(wxSystemSettings::GetColour(wxSYS_COLOUR_3DLIGHT), 1, wxSOLID);
|
||||||
dc.SetPen(pen);
|
dc.SetPen(pen);
|
||||||
dc.SetBrush(* wxTRANSPARENT_BRUSH);
|
dc.SetBrush(* wxTRANSPARENT_BRUSH);
|
||||||
wxFont font(wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT));
|
wxFont font(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
|
||||||
dc.SetFont(font);
|
dc.SetFont(font);
|
||||||
|
|
||||||
wxSize clientSize = GetClientSize();
|
wxSize clientSize = GetClientSize();
|
||||||
|
@@ -186,7 +186,7 @@ bool MainApp::OnInit(void) // Does everything needed for a program start
|
|||||||
frame = new MainFrame((wxFrame *) NULL,(char *) Temp0.c_str(),wxPoint(x,y),wxSize(w,h));
|
frame = new MainFrame((wxFrame *) NULL,(char *) Temp0.c_str(),wxPoint(x,y),wxSize(w,h));
|
||||||
//---------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------
|
||||||
// Set the Backgroundcolour (only need if your are NOT using wxSYS_COLOUR_BACKGROUND)
|
// Set the Backgroundcolour (only need if your are NOT using wxSYS_COLOUR_BACKGROUND)
|
||||||
frame->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_BACKGROUND));
|
frame->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_BACKGROUND));
|
||||||
// frame->SetBackgroundColour(wxColour(255, 255, 255));
|
// frame->SetBackgroundColour(wxColour(255, 255, 255));
|
||||||
// frame->SetBackgroundColour(* wxWHITE);
|
// frame->SetBackgroundColour(* wxWHITE);
|
||||||
//---------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------
|
||||||
|
@@ -57,7 +57,7 @@ MainDoc::MainDoc()
|
|||||||
i_TabNr = 0;
|
i_TabNr = 0;
|
||||||
i_PageNr = 0;
|
i_PageNr = 0;
|
||||||
s_BColour = "WHEAT";
|
s_BColour = "WHEAT";
|
||||||
ft_Doc = new wxFont(wxSystemSettings::GetSystemFont(wxSYS_SYSTEM_FONT));
|
ft_Doc = new wxFont(wxSystemSettings::GetFont(wxSYS_SYSTEM_FONT));
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------
|
||||||
|
@@ -75,7 +75,7 @@ bool MyApp::OnInit()
|
|||||||
|
|
||||||
// Make a panel
|
// Make a panel
|
||||||
frame->panel = new wxPanel(frame, 0, 0, 1000, 500, wxTAB_TRAVERSAL);
|
frame->panel = new wxPanel(frame, 0, 0, 1000, 500, wxTAB_TRAVERSAL);
|
||||||
frame->panel->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
|
frame->panel->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
|
||||||
// frame->panel->SetAutoLayout(TRUE);
|
// frame->panel->SetAutoLayout(TRUE);
|
||||||
|
|
||||||
// Create some panel items
|
// Create some panel items
|
||||||
|
@@ -575,13 +575,13 @@ void Menu::Show(Point pt, Window &w) {
|
|||||||
|
|
||||||
Colour Platform::Chrome() {
|
Colour Platform::Chrome() {
|
||||||
wxColour c;
|
wxColour c;
|
||||||
c = wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE);
|
c = wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE);
|
||||||
return Colour(c.Red(), c.Green(), c.Blue());
|
return Colour(c.Red(), c.Green(), c.Blue());
|
||||||
}
|
}
|
||||||
|
|
||||||
Colour Platform::ChromeHighlight() {
|
Colour Platform::ChromeHighlight() {
|
||||||
wxColour c;
|
wxColour c;
|
||||||
c = wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DHIGHLIGHT);
|
c = wxSystemSettings::GetColour(wxSYS_COLOUR_3DHIGHLIGHT);
|
||||||
return Colour(c.Red(), c.Green(), c.Blue());
|
return Colour(c.Red(), c.Green(), c.Blue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2904,7 +2904,7 @@ bool wxResourceManager::InsertLabelResource(wxItemResource* parent, wxItemResour
|
|||||||
font = parent->GetFont();
|
font = parent->GetFont();
|
||||||
|
|
||||||
if (!font.Ok() || (parent->GetResourceStyle() & wxRESOURCE_USE_DEFAULTS))
|
if (!font.Ok() || (parent->GetResourceStyle() & wxRESOURCE_USE_DEFAULTS))
|
||||||
font = wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT);
|
font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
|
||||||
|
|
||||||
int labelX, labelY;
|
int labelX, labelY;
|
||||||
wxCoord labelWidth, labelHeight;
|
wxCoord labelWidth, labelHeight;
|
||||||
|
Reference in New Issue
Block a user