Hi all,

With LessTif compiled from 0.91 source distribution, I am having trouble
using XmSelectionBox widget on Linux(2.2.12-20 on i686) using gcc(2.95.2).

I wrote a simple test program (my first ever X program) to test it and the
test program works as expected when compiled on HP using HP's Motif libs.
However, when linked with LessTif libXm.a,   a ghost "Items" box appears on
top of the selection box. According to the man page, if dialogtype is set
to DIALOG_PROMPT, the widget should only show the selection box as like
promptdialog.

Could anyone explain what might be the cause of this? Should I report this
as a bug?

Thanks ..

-- Don --


========================= test program =========================
#include <Xm/Xm.h>             
#include <Xm/SelectioB.h>

void main(int argc, char **argv)
{
  Widget  top_level, child;
  static char *fallback_resources[] = {
    "*foo.dialogTitle: FOO",
    "*foo.dialogType: DIALOG_PROMPT",
    (char *) NULL
  };

  XtAppContext app_context;                    
  top_level = XtVaAppInitialize(&app_context,"Xbug",NULL,0, &argc,argv,
                                fallback_resources,NULL);
  child = XmCreateSelectionBox(top_level, "foo", NULL,  0);            
  XtManageChild(child);
  XtRealizeWidget(top_level);
  XtAppMainLoop(app_context);
}

Reply via email to