m_tempCallbackStruct = (void*) NULL;
m_modified = FALSE;
m_processedDefault = FALSE;
- m_inSetValue = FALSE;
}
bool wxTextCtrl::Create(wxWindow *parent, wxWindowID id,
m_modified = FALSE;
m_processedDefault = FALSE;
m_fileName = "";
- m_inSetValue = FALSE;
+ m_backgroundColour = parent->GetBackgroundColour();
+ m_foregroundColour = parent->GetForegroundColour();
SetName(name);
SetValidator(validator);
AttachWidget (parent, m_mainWidget, (WXWidget) NULL, pos.x, pos.y, size.x, size.y);
SetFont(* parent->GetFont());
- ChangeColour(m_mainWidget);
+ ChangeBackgroundColour();
return TRUE;
}
}
}
+void wxTextCtrl::ChangeFont()
+{
+ // TODO
+}
+
+void wxTextCtrl::ChangeBackgroundColour()
+{
+ // TODO
+}
+
+void wxTextCtrl::ChangeForegroundColour()
+{
+ // TODO
+}
+
static void wxTextWindowChangedProc (Widget w, XtPointer clientData, XtPointer ptr)
{
if (!wxGetWindowFromTable(w))
tw->m_tempCallbackStruct = NULL;
- if (tw->m_inSetValue)
+ if (tw->InSetValue())
return;
if (tw->m_processedDefault)
tw->m_tempCallbackStruct = NULL;
- if (tw->m_inSetValue)
+ if (tw->InSetValue())
return;
if (tw->m_processedDefault)
}
*/
- if (tw->m_inSetValue)
+ if (tw->InSetValue())
return;
wxCommandEvent event(wxEVT_COMMAND_TEXT_ENTER);