Did much work on colors. It doesn't work and I guess

it's a GTK bug.
  Small change to Blit()
  Added GTK_NO_TYPE_CHECK when compiling without debug_flag
  Added more wxCHECK_XXX


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1998-10-26 00:19:25 +00:00
parent 019bf1286f
commit f96aa4d9eb
49 changed files with 1004 additions and 533 deletions

View File

@@ -160,7 +160,7 @@ void MyDialog::OnTextCtrlButtons( wxCommandEvent &event )
};
case ID_TEXTCTRL_DEL:
{
m_textctrl->Delete();
m_textctrl->Clear();
break;
};
};
@@ -324,8 +324,8 @@ MyCanvas::MyCanvas( wxWindow *parent, const wxWindowID id, const wxPoint &pos, c
: wxScrolledWindow( parent, id, pos, size, wxSUNKEN_BORDER )
{
my_bitmap = new wxBitmap( folder_xpm );
my_horse = new wxBitmap();
my_horse->LoadFile( "horse.png", 0 );
// my_horse = new wxBitmap();
// my_horse->LoadFile( "horse.png", 0 );
my_backstore = new wxBitmap( 150, 150 );
my_font = new wxFont( 20, wxROMAN, wxNORMAL, wxNORMAL );
m_isCreated = FALSE;
@@ -337,7 +337,7 @@ MyCanvas::~MyCanvas(void)
{
delete my_bitmap;
delete my_backstore;
delete my_horse;
// delete my_horse;
delete my_font;
};
@@ -387,7 +387,7 @@ void MyCanvas::OnPaint( wxPaintEvent &WXUNUSED(event) )
dc.DrawText( "Hej, ho, hej, ho. (ItalicFont)", 80, 100 );
dc.DrawBitmap( *my_bitmap, 30, 80, TRUE );
dc.DrawBitmap( *my_horse, 30, 120 );
// dc.DrawBitmap( *my_horse, 30, 120 );
dc.Blit( 200, 200, 150, 150, &memDC, 0, 0, 0 );