Added new __WXMOTIF20__ macro, which is true if the Motif version
is 2.0 or higher. Now Motif 2.0 or better (but not Lesstif) uses XmRenderTable instead of the deprecated XmFontList. This allows underlined text in controls. Miscellaneous cleanup; used wxXmString in some more places. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -54,9 +54,6 @@ bool wxButton::Create(wxWindow *parent, wxWindowID id, const wxString& label,
|
||||
|
||||
Widget parentWidget = (Widget) parent->GetClientWidget();
|
||||
|
||||
XmFontList fontList =
|
||||
(XmFontList)m_font.GetFontList(1.0, XtDisplay(parentWidget));
|
||||
|
||||
/*
|
||||
* Patch Note (important)
|
||||
* There is no major reason to put a defaultButtonThickness here.
|
||||
@@ -69,7 +66,7 @@ bool wxButton::Create(wxWindow *parent, wxWindowID id, const wxString& label,
|
||||
m_mainWidget = (WXWidget) XtVaCreateManagedWidget ("button",
|
||||
xmPushButtonWidgetClass,
|
||||
parentWidget,
|
||||
XmNfontList, fontList,
|
||||
wxFont::GetFontTag(), m_font.GetFontType(XtDisplay(parentWidget)),
|
||||
XmNlabelString, text(),
|
||||
// See comment for wxButton::SetDefault
|
||||
// XmNdefaultButtonShadowThickness, 1,
|
||||
|
Reference in New Issue
Block a user