projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
put URLs into \urlref commands
[wxWidgets.git]
/
src
/
motif
/
control.cpp
diff --git
a/src/motif/control.cpp
b/src/motif/control.cpp
index 2f503b86ae1f75de14e5bff5a7c853cdcafe0124..0924e49ef4385d181b3db6f0263a15f08cd50f0c 100644
(file)
--- a/
src/motif/control.cpp
+++ b/
src/motif/control.cpp
@@
-1,5
+1,5
@@
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: control.cpp
+// Name:
src/motif/
control.cpp
// Purpose: wxControl class
// Author: Julian Smart
// Modified by:
// Purpose: wxControl class
// Author: Julian Smart
// Modified by:
@@
-9,18
+9,15
@@
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "control.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
-#include "wx/defs.h"
-
#include "wx/control.h"
#include "wx/control.h"
-#include "wx/panel.h"
-#include "wx/utils.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/utils.h"
+ #include "wx/panel.h"
+#endif
#ifdef __VMS__
#pragma message disable nosimpint
#ifdef __VMS__
#pragma message disable nosimpint
@@
-40,9
+37,6
@@
END_EVENT_TABLE()
// Item members
wxControl::wxControl()
{
// Item members
wxControl::wxControl()
{
- m_backgroundColour = *wxWHITE;
- m_foregroundColour = *wxBLACK;
-
m_inSetValue = false;
}
m_inSetValue = false;
}
@@
-75,10
+69,6
@@
bool wxControl::CreateControl(wxWindow *parent,
validator, name ) )
return false;
validator, name ) )
return false;
- m_backgroundColour = parent->GetBackgroundColour();
- m_foregroundColour = parent->GetForegroundColour();
- m_font = parent->GetFont();
-
return true;
}
return true;
}
@@
-88,7
+78,7
@@
void wxControl::SetLabel(const wxString& label)
if (!widget)
return;
if (!widget)
return;
- wxXmString label_str(
wxStripMenuCodes
(label));
+ wxXmString label_str(
GetLabelText
(label));
XtVaSetValues (widget,
XmNlabelString, label_str(),
XtVaSetValues (widget,
XmNlabelString, label_str(),
@@
-112,7
+102,7
@@
wxString wxControl::GetLabel() const
bool wxControl::ProcessCommand(wxCommandEvent & event)
{
bool wxControl::ProcessCommand(wxCommandEvent & event)
{
- return
GetEventHandler()->Process
Event(event);
+ return
HandleWindow
Event(event);
}
wxSize wxControl::DoGetBestSize() const
}
wxSize wxControl::DoGetBestSize() const