git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22867
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxColourData retData = dialog.GetColourData();
col = retData.GetColour();
myCanvas->SetBackgroundColour(col);
wxColourData retData = dialog.GetColourData();
col = retData.GetColour();
myCanvas->SetBackgroundColour(col);
+ myCanvas->ClearBackground();
wxColour col = retData.GetColour();
// wxBrush *brush = wxTheBrushList->FindOrCreateBrush(&col, wxSOLID);
myCanvas->SetBackgroundColour(col);
wxColour col = retData.GetColour();
// wxBrush *brush = wxTheBrushList->FindOrCreateBrush(&col, wxSOLID);
myCanvas->SetBackgroundColour(col);
+ myCanvas->ClearBackground();
myCanvas->Refresh();
}
dialog->Destroy();
myCanvas->Refresh();
}
dialog->Destroy();
// Give it scrollbars
canvas->SetScrollbars(20, 20, 50, 50);
canvas->SetBackgroundColour(*wxWHITE);
// Give it scrollbars
canvas->SetScrollbars(20, 20, 50, 50);
canvas->SetBackgroundColour(*wxWHITE);
+ canvas->ClearBackground();
// Clear the canvas in case we're in single-window mode,
// and the canvas stays.
// Clear the canvas in case we're in single-window mode,
// and the canvas stays.
+ canvas->ClearBackground();
canvas->view = (wxView *) NULL;
canvas = (MyCanvas *) NULL;
canvas->view = (wxView *) NULL;
canvas = (MyCanvas *) NULL;
// Clear the canvas in case we're in single-window mode,
// and the canvas stays.
// Clear the canvas in case we're in single-window mode,
// and the canvas stays.
+ canvas->ClearBackground();
canvas->view = (wxView *) NULL;
canvas = (MyCanvas *) NULL;
canvas->view = (wxView *) NULL;
canvas = (MyCanvas *) NULL;
SetFrame((wxFrame*)NULL);
Activate(FALSE);
SetFrame((wxFrame*)NULL);
Activate(FALSE);
if (deleteWindow)
{
delete frame;
if (deleteWindow)
{
delete frame;
frame->Show(TRUE);
Activate(TRUE);
frame->Show(TRUE);
Activate(TRUE);
{
if (!GetDocument()->Close())
return FALSE;
{
if (!GetDocument()->Close())
return FALSE;
Activate(FALSE);
if (deleteWindow)
Activate(FALSE);
if (deleteWindow)
static DoodleSegment *currentSegment = (DoodleSegment *) NULL;
wxClientDC dc(this);
static DoodleSegment *currentSegment = (DoodleSegment *) NULL;
wxClientDC dc(this);
currentSegment = (DoodleSegment *) NULL;
}
}
currentSegment = (DoodleSegment *) NULL;
}
}
if (xpos > -1 && ypos > -1 && event.Dragging())
{
if (!currentSegment)
currentSegment = new DoodleSegment;
DoodleLine *newLine = new DoodleLine;
if (xpos > -1 && ypos > -1 && event.Dragging())
{
if (!currentSegment)
currentSegment = new DoodleSegment;
DoodleLine *newLine = new DoodleLine;
- newLine->x1 = (long)xpos;
+ newLine->x1 = (long)xpos;
newLine->y1 = (long)ypos;
newLine->y1 = (long)ypos;
newLine->y2 = pt.y;
currentSegment->lines.Append(newLine);
newLine->y2 = pt.y;
currentSegment->lines.Append(newLine);
dc.DrawLine( (long)xpos, (long)ypos, pt.x, pt.y);
}
xpos = pt.x;
dc.DrawLine( (long)xpos, (long)ypos, pt.x, pt.y);
}
xpos = pt.x;