return TRUE;
}
+wxStaticBox::~wxStaticBox()
+{
+ DetachWidget(m_formWidget);
+ DetachWidget(m_mainWidget);
+ XtDestroyWidget((Widget) m_mainWidget);
+ if (m_labelWidget)
+ XtDestroyWidget((Widget) m_labelWidget);
+ XtDestroyWidget((Widget) m_formWidget);
+
+ m_mainWidget = (WXWidget) 0;
+ m_labelWidget = (WXWidget) 0;
+ m_formWidget = (WXWidget) 0;
+}
+
void wxStaticBox::SetLabel(const wxString& label)
{
if (!m_labelWidget)
void wxStaticBox::ChangeBackgroundColour()
{
wxWindow::ChangeBackgroundColour();
+ if (m_labelWidget)
+ DoChangeBackgroundColour(m_labelWidget, m_backgroundColour);
}
void wxStaticBox::ChangeForegroundColour()
{
wxWindow::ChangeForegroundColour();
+ if (m_labelWidget)
+ DoChangeForegroundColour(m_labelWidget, m_foregroundColour);
}