projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
set background style to wxBG_STYLE_COLOUR in SetBackgroundColour()
[wxWidgets.git]
/
samples
/
toolbar
/
toolbar.cpp
diff --git
a/samples/toolbar/toolbar.cpp
b/samples/toolbar/toolbar.cpp
index 181b30df0027b564e485117520befe64c8db6da8..b0a791145fa10887dc149d96e76ddad032690b71 100644
(file)
--- a/
samples/toolbar/toolbar.cpp
+++ b/
samples/toolbar/toolbar.cpp
@@
-279,7
+279,7
@@
void MyFrame::RecreateToolbar()
#ifdef __WXWINCE__
// On Windows CE, we should not delete the
// previous toolbar in case it contains the menubar.
#ifdef __WXWINCE__
// On Windows CE, we should not delete the
// previous toolbar in case it contains the menubar.
- // We'll try to accomodate this usage in due course.
+ // We'll try to accom
m
odate this usage in due course.
wxToolBar* toolBar = CreateToolBar();
#else
// delete and recreate the toolbar
wxToolBar* toolBar = CreateToolBar();
#else
// delete and recreate the toolbar
@@
-343,7
+343,7
@@
void MyFrame::RecreateToolbar()
// adding a combo to a vertical toolbar is not very smart
if ( m_horzToolbar )
{
// adding a combo to a vertical toolbar is not very smart
if ( m_horzToolbar )
{
- wxComboBox *combo = new wxComboBox(toolBar, ID_COMBO, _T(""), wxDefaultPosition, wxSize(200,wxDefault
Size.y
) );
+ wxComboBox *combo = new wxComboBox(toolBar, ID_COMBO, _T(""), wxDefaultPosition, wxSize(200,wxDefault
Coord
) );
combo->Append(_T("This"));
combo->Append(_T("is a"));
combo->Append(_T("combobox"));
combo->Append(_T("This"));
combo->Append(_T("is a"));
combo->Append(_T("combobox"));
@@
-483,7
+483,7
@@
void MyFrame::LayoutChildren()
int offset;
if ( m_tbar )
{
int offset;
if ( m_tbar )
{
- m_tbar->SetSize(wxDefault
Size.x
, size.y);
+ m_tbar->SetSize(wxDefault
Coord
, size.y);
m_tbar->Move(0, 0);
offset = m_tbar->GetSize().x;
m_tbar->Move(0, 0);
offset = m_tbar->GetSize().x;