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 |
Hi, I'm having a serious problem with the scrollbar-widget. When I'm trying to set some resources, specifically XtNheight, DwtNshown and DwtNpageInc, with XtSetValues like: XtSetArg(args[0], XtNheight, visible_height); XtSetArg(args[1], DwtNshown, visible_height); XtSetArg(args[2], DwtNpageInc, page_inc); XtSetValues(scroll_barW, args, XtNumber(args)); } I get the following error at XtSetValues: "X Error event received from server: BadValue - integer paramter out of range" Failed request major opcode 61 (X_ClearArea), minor opcode 0 visible_height equals to the height of the window the SB is attached to (which is supposed to be scrolled) and page_inc is less than visible_height. any clues on what to do??? Nils Berggren
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
2972.1 | possible problem | R2ME2::OBRYAN | Thu Jun 21 1990 15:12 | 18 | |
re:.0 > XtSetArg(args[0], XtNheight, visible_height); > XtSetArg(args[1], DwtNshown, visible_height); >"X Error event received from server: BadValue - integer paramter out of range" Unless I'm misreading the documentation, DwtNshown is related to minValue and maxValue, not the height. Shown is the "proportion of visible underlying work area" with the difference between maxValue and minValue indicating the magnitude of that work area. As such, I would expect DwtNshown to be a number between 1 and abs(maxValue - minValue). Conversely, height is the physical height of the scroll bar bounding window in Pixels (which may greatly exceed abs(maxValue - minValue)). Of course, this may have nothing to do with the error message :-) Michael |