Use the black pen for the border on Windows now too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -96,7 +96,7 @@ wxTipWindow::wxTipWindow(wxWindow *parent,
|
|||||||
wxCoord maxLength, wxTipWindow** windowPtr)
|
wxCoord maxLength, wxTipWindow** windowPtr)
|
||||||
: wxFrame(parent, -1, _T(""),
|
: wxFrame(parent, -1, _T(""),
|
||||||
wxDefaultPosition, wxDefaultSize,
|
wxDefaultPosition, wxDefaultSize,
|
||||||
wxNO_BORDER | wxFRAME_FLOAT_ON_PARENT)
|
wxNO_BORDER | wxFRAME_NO_TASKBAR )
|
||||||
{
|
{
|
||||||
// set colours
|
// set colours
|
||||||
SetForegroundColour(*wxBLACK);
|
SetForegroundColour(*wxBLACK);
|
||||||
@@ -250,12 +250,7 @@ void wxTipWindowView::OnPaint(wxPaintEvent& WXUNUSED(event))
|
|||||||
// first filll the background
|
// first filll the background
|
||||||
dc.SetBrush(wxBrush(GetBackgroundColour(), wxSOLID));
|
dc.SetBrush(wxBrush(GetBackgroundColour(), wxSOLID));
|
||||||
|
|
||||||
// Under Windows, you apparently get a thin black border whether you like it or not :-(
|
|
||||||
#ifdef __WXMSW__
|
|
||||||
dc.SetPen( * wxTRANSPARENT_PEN );
|
|
||||||
#else
|
|
||||||
dc.SetPen( * wxBLACK_PEN );
|
dc.SetPen( * wxBLACK_PEN );
|
||||||
#endif
|
|
||||||
dc.DrawRectangle(rect);
|
dc.DrawRectangle(rect);
|
||||||
|
|
||||||
// and then draw the text line by line
|
// and then draw the text line by line
|
||||||
|
Reference in New Issue
Block a user