summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
765e386)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3558
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// ----------------------------------------------------------------------------
// wxStaticLine
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// wxStaticLine
// ----------------------------------------------------------------------------
// Must call this to set the filename and server name.
// server is only required when implementing TCP/IP-based
// help controllers.
// Must call this to set the filename and server name.
// server is only required when implementing TCP/IP-based
// help controllers.
- virtual bool Initialize(const wxString& WXUNUSED(file), int WXUNUSED(server) ) { return FALSE; };
- virtual bool Initialize(const wxString& file) = 0;
+ virtual bool Initialize(const wxString& WXUNUSED(file), int WXUNUSED(server) ) { return FALSE; }
+ virtual bool Initialize(const wxString& file) { return FALSE; }
// Set viewer: only relevant to some kinds of controller
virtual void SetViewer(const wxString& WXUNUSED(viewer), long WXUNUSED(flags) = 0) {}
// Set viewer: only relevant to some kinds of controller
virtual void SetViewer(const wxString& WXUNUSED(viewer), long WXUNUSED(flags) = 0) {}
: wxFrame((wxFrame *) NULL, -1, "wxConfig Demo")
{
// submenu
: wxFrame((wxFrame *) NULL, -1, "wxConfig Demo")
{
// submenu
- wxMenu *sub_menu = new wxMenu( wxMENU_TEAROFF );
+ wxMenu *sub_menu = new wxMenu( wxEmptyString, wxMENU_TEAROFF );
sub_menu->Append(Minimal_About, "&About", "About this sample");
sub_menu->Append(Minimal_About, "&About", "About this sample");
sub_menu->Append(Minimal_About, "&About", "About this sample");
sub_menu->Append(Minimal_About, "&About", "About this sample");
sub_menu->Append(Minimal_About, "&About", "About this sample");
sub_menu->Append(Minimal_About, "&About", "About this sample");
long style,
const wxString &name)
{
long style,
const wxString &name)
{
- if ( !CreateBase(parent, id, pos, size, style, name) )
+ if ( !CreateBase(parent, id, pos, size, style, wxDefaultValidator, name) )
return FALSE;
// ok, this is ugly but it's better than nothing: use a thin static box to
return FALSE;
// ok, this is ugly but it's better than nothing: use a thin static box to
+#if 0 // gcc 2.95 doesn't like this apparently
char* label1 = (label.IsNull() ? "" : (char*) (const char*) label);
char* label1 = (label.IsNull() ? "" : (char*) (const char*) label);
XmString text = XmStringCreateSimple (label1);
XmString text = XmStringCreateSimple (label1);
+#endif
+
+ wxXmString text( label );
+
Widget parentWidget = (Widget) parent->GetClientWidget();
XmFontList fontList = (XmFontList) m_font.GetFontList(1.0, XtDisplay(parentWidget));
m_mainWidget = (WXWidget) XtVaCreateManagedWidget ("toggle",
xmToggleButtonWidgetClass, parentWidget,
XmNfontList, fontList,
Widget parentWidget = (Widget) parent->GetClientWidget();
XmFontList fontList = (XmFontList) m_font.GetFontList(1.0, XtDisplay(parentWidget));
m_mainWidget = (WXWidget) XtVaCreateManagedWidget ("toggle",
xmToggleButtonWidgetClass, parentWidget,
XmNfontList, fontList,
+ XmNlabelString, text(),
XtAddCallback ((Widget) m_mainWidget, XmNvalueChangedCallback, (XtCallbackProc) wxCheckBoxCallback,
(XtPointer) this);
XtAddCallback ((Widget) m_mainWidget, XmNvalueChangedCallback, (XtCallbackProc) wxCheckBoxCallback,
(XtPointer) this);
m_windowStyle = style;
m_font = parent->GetFont();
m_windowStyle = style;
m_font = parent->GetFont();
+#if 0 // gcc 2.95 doesn't like this apparently
char* label1 = (label.IsNull() ? "" : (char*) (const char*) label);
char* label1 = (label.IsNull() ? "" : (char*) (const char*) label);
Widget parentWidget = (Widget) parent->GetClientWidget();
Widget parentWidget = (Widget) parent->GetClientWidget();
+#if 0 // gcc 2.95 doesn't like this apparently
// Use XmStringCreateLtoR(), since XmStringCreateSimple
// doesn't obey separators.
// XmString text = XmStringCreateSimple (label1);
XmString text = XmStringCreateLtoR (label1, XmSTRING_DEFAULT_CHARSET);
// Use XmStringCreateLtoR(), since XmStringCreateSimple
// doesn't obey separators.
// XmString text = XmStringCreateSimple (label1);
XmString text = XmStringCreateLtoR (label1, XmSTRING_DEFAULT_CHARSET);
+#endif // 0
+
+ XmString text = XmStringCreateLtoR ((char *)(const char*)label, XmSTRING_DEFAULT_CHARSET);
+
XmFontList fontList = (XmFontList) m_font.GetFontList(1.0, XtDisplay(parentWidget));
m_mainWidget = (WXWidget) XtVaCreateManagedWidget ((char*) (const char*) name,
XmFontList fontList = (XmFontList) m_font.GetFontList(1.0, XtDisplay(parentWidget));
m_mainWidget = (WXWidget) XtVaCreateManagedWidget ((char*) (const char*) name,