Added some Motif wxGLCanvas support; some more Motif bugs cured; print dialogs
look OK on Motif now; got rid of some #ifdef wxUSE_... instances git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#endif
|
||||
|
||||
#include "wx/checkbox.h"
|
||||
#include "wx/utils.h"
|
||||
|
||||
#include <Xm/Label.h>
|
||||
#include <Xm/LabelG.h>
|
||||
@@ -169,8 +170,13 @@ void wxCheckBox::ChangeBackgroundColour()
|
||||
XmNforeground, g_itemColors[wxFORE_INDEX].pixel,
|
||||
NULL);
|
||||
|
||||
int selectPixel = wxBLACK->AllocColour(wxGetDisplay());
|
||||
|
||||
// Better to have the checkbox selection in black, or it's
|
||||
// hard to determine what state it is in.
|
||||
XtVaSetValues ((Widget) m_mainWidget,
|
||||
XmNselectColor, g_itemColors[wxSELE_INDEX].pixel,
|
||||
// XmNselectColor, g_itemColors[wxSELE_INDEX].pixel,
|
||||
XmNselectColor, selectPixel,
|
||||
NULL);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user