#pragma interface
#endif
+class wxStaticBox;
+
// ----------------------------------------------------------------------------
// wxStaticLine
// ----------------------------------------------------------------------------
// 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) {}
: 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");
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
else
m_windowId = id;
+#if 0 // gcc 2.95 doesn't like this apparently
char* label1 = (label.IsNull() ? "" : (char*) (const char*) label);
-
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,
- XmNlabelString, text,
+ XmNlabelString, text(),
NULL);
+#if 0
XmStringFree (text);
-
+#endif
+
XtAddCallback ((Widget) m_mainWidget, XmNvalueChangedCallback, (XtCallbackProc) wxCheckBoxCallback,
(XtPointer) this);
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);
-
+#endif
+
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);
-
+#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,