projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implemented cursors cache, so that cursors are not loaded from file again and again
[wxWidgets.git]
/
src
/
motif
/
textctrl.cpp
diff --git
a/src/motif/textctrl.cpp
b/src/motif/textctrl.cpp
index 07bd42afbab746490f163fd2ea0e7807c184ec26..fe72b88437e85d413dfc78b1c84ada12432144cd 100644
(file)
--- a/
src/motif/textctrl.cpp
+++ b/
src/motif/textctrl.cpp
@@
-21,6
+21,10
@@
#pragma implementation "textctrl.h"
#endif
#pragma implementation "textctrl.h"
#endif
+#ifdef __VMS
+#define XtParent XTPARENT
+#endif
+
#include <sys/types.h>
#include <sys/stat.h>
#include <fstream.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fstream.h>
@@
-300,7
+304,7
@@
bool wxTextCtrl::CanCut() const
// Can cut if there's a selection
long from, to;
GetSelection(& from, & to);
// Can cut if there's a selection
long from, to;
GetSelection(& from, & to);
- return (from != to) ;
+ return (from != to)
&& (IsEditable())
;
}
bool wxTextCtrl::CanPaste() const
}
bool wxTextCtrl::CanPaste() const
@@
-661,7
+665,7
@@
void wxTextCtrl::ChangeBackgroundColour()
XmNhorizontalScrollBar, &hsb,
XmNverticalScrollBar, &vsb,
NULL);
XmNhorizontalScrollBar, &hsb,
XmNverticalScrollBar, &vsb,
NULL);
- wxColour backgroundColour = wxSystemSettings::Get
System
Colour(wxSYS_COLOUR_3DFACE);
+ wxColour backgroundColour = wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE);
if (hsb)
DoChangeBackgroundColour((WXWidget) hsb, backgroundColour, TRUE);
if (vsb)
if (hsb)
DoChangeBackgroundColour((WXWidget) hsb, backgroundColour, TRUE);
if (vsb)