Rick,

Thanks for the quick reply.

Yes, I did get warning when I add the resources in a seperate file.

"Warning: Cannot convert string "DIALOG_PROMPT" to type SelectionType"

Thanks for your suggestion of using SetArgs. 
However, it is not a good option for me to choose at this point. 

-- Don --


Rick Scott wrote:
> 
> Do you get any warnings when you run this program??
> 
> My 30 second evaluation of this problem indicates that we may be missing a
> resource converter for DIALOG_PROMPT. selectionbox/test1 shows that it works
> when set with a SetArgs (you have to edit it).
> 
> On 19-May-00 at 03:09, Don Han ([EMAIL PROTECTED]) wrote:
> > 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