1. OnNcPaint() fixed, seems to work

2. start of wxTextCtrl


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-09-15 18:22:18 +00:00
parent ebd161b6c8
commit e65ebedd36
32 changed files with 817 additions and 182 deletions

View File

@@ -45,6 +45,7 @@
#include "wx/scrolwin.h"
#include "wx/statbox.h"
#include "wx/stattext.h"
#include "wx/textctrl.h"
#endif
#include "wx/statbmp.h"
@@ -52,7 +53,7 @@
#include "wx/univ/theme.h"
#define DEBUG_SCROLL
//#define DEBUG_SCROLL
//#define DEBUG_LISTBOX
// ----------------------------------------------------------------------------
@@ -227,9 +228,9 @@ MyUnivFrame::MyUnivFrame(const wxString& title)
wxStaticText *text;
new wxStaticText(this, _T("Test static text"), wxPoint(10, 10));
new wxStaticText(this,
new wxStaticText(this, -1,
_T("&Multi line\n(and very very very very long)\nstatic text"),
wxPoint(210, 10));
wxPoint(210, 10), wxDefaultSize, wxBORDER_SUNKEN);
(new wxStaticText(this, _T("&Disabled text"), wxPoint(10, 30)))->Disable();
@@ -364,6 +365,9 @@ MyUnivFrame::MyUnivFrame(const wxString& title)
wxDefaultSize,
WXSIZEOF(choices), choices);
checkLbox->Check(2);
new wxTextCtrl(this, -1, _T("Hello, Universe!"),
wxPoint(550, 150), wxDefaultSize);
}
void MyUnivFrame::OnButton(wxCommandEvent& event)
@@ -429,6 +433,6 @@ void MyUnivCanvas::OnPaint(wxPaintEvent& event)
dc.DrawLabel(_T("This is the bottom of the canvas"),
wxRect(0, 950, 950, 50), wxALIGN_RIGHT | wxBOTTOM);
event.Skip();
//event.Skip();
}