[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

765.0. "Vertical scroll bar with SText ?" by CSC32::K_TICE (Ada...Keeping the world safe for beaurocracy!) Wed May 10 1989 20:14

/* Why doesn't this give me a vertical scroll bar ???
   Using the low-level routine, DwtSTextCreate works just fine.

   Thanks,
   Ken 
*/ 

#include <decw$include/DwtAppl.h>
main()
{
Widget toplevel,middle,text;
int ac,n;
Arg arg_list[10];
char howdy[] = "this is a test for the next 60 seconds";
char example[] = "example";
ac = 0;
toplevel = XtInitialize(&example,&example,0,0,&ac,0);

middle = DwtDialogBox(toplevel,"mid",False,0,0,"help",DwtWorkarea,0,0);
text = DwtSText(middle,"text",0,0,75,3,howdy);

XtSetArg(arg_list[n],DwtNwordWrap,True);      ++n;
XtSetArg(arg_list[n],DwtNscrollVertical,True); ++n;

XtSetValues(text,arg_list,n);

XtManageChild(middle);
XtManageChild(text);
XtRealizeWidget(toplevel);
XtMainLoop( );

}

T.RTitleUserPersonal
Name
DateLines
765.1Not a dynamic resourceMELTIN::dickSchoeller - Xperimenting with XNotesWed May 10 1989 20:586
I am pretty sure that VerticalScroll is not a dynamic resource.  You must
specify that argument as part of the override list in the creation call
instead of use XtSetValues.

Dick

765.2So only via low-level?29067::K_TICEAda...Keeping the world safe for beaurocracy!Thu May 11 1989 12:574
    Which means you MUST create it ONLY via the low-level widget routine?
    
    Ken

765.3Yes and it's a bug52494::CLEOVOULOUMarios CleovoulouThu May 11 1989 14:1113
>    Which means you MUST create it ONLY via the low-level widget routine?
    
    Yes, or via UIL.                                       
    
    .-2's "not a dynamic resource" statement leads one to believe that this
    is the intended behaviour, however, the documentation says nothing
    about this.  I'd say that this is (yet another) SText widget
    "SetValues" bug and I suggest you QAR it.
    
    Regards,
    
    Marios