Menu

#281 Window title not being set

open
nobody
5
2015-01-12
2007-06-08
Brian P
No

I have some code that changes the window title bar for the main window. Looks like this:

// Create title string for object
char tmpStr[name.length() + 1];
strcpy(tmpStr, name.c_str());
XmString title = XmStringCreateSimple(tmpStr);

Arg arg ;

// Set title
XtSetArg(arg, XmNdialogTitle, title) ;

// Create main window
rtr.sysres = XmCreateForm(GraphicalItem::topLevel, tmpStr, &arg, 1) ;

finalizeConstruction();
XmStringFree(title);

When this is compiled and run with lesstif 0.95.0-15 (fedora code 6) the title bar does not change and remains the title of the executable itself.

If I remove lesstif and install openmotif 21-2.1.30-11 (RedHat WS 4) the exact same code works fine.

Discussion


Log in to post a comment.