// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation "dllwidget.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
long style)
: wxPanel(parent, id, pos, size, wxTAB_TRAVERSAL | wxNO_BORDER,
className + wxT("_container")),
- m_widget(NULL), m_lib(NULL), m_controlAdded(FALSE)
+ m_widget(NULL), m_lib(NULL), m_controlAdded(false)
{
SetBackgroundColour(wxColour(255, 0, 255));
if ( !!className )
void wxDllWidget::AddChild(wxWindowBase *child)
{
- wxASSERT_MSG( !m_controlAdded, wxT("Couldn't load two widgets into one container!") )
+ wxASSERT_MSG( !m_controlAdded, wxT("Couldn't load two widgets into one container!") );
wxPanel::AddChild(child);
- m_controlAdded = TRUE;
+ m_controlAdded = true;
wxSizer *sizer = new wxBoxSizer(wxHORIZONTAL);
sizer->Add((wxWindow*)child, 1, wxEXPAND);
SetSizer(sizer);
- SetAutoLayout(TRUE);
Layout();
}
{
delete m_lib;
m_lib = NULL;
- return FALSE;
+ return false;
}
DLL_WidgetFactory_t factory;
{
delete m_lib;
m_lib = NULL;
- return FALSE;
+ return false;
}
if ( !factory(className, this, style, &m_widget, &m_cmdFunc) )
delete m_lib;
m_lib = NULL;
m_widget = NULL;
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
}
void wxDllWidget::UnloadWidget()