I am using Xbae 4.9.1 to create a matrix widget on a Solaris 7 platform. I keep
getting
the following warning messages
Warning:
Name: vertScroll
Class: XmScrollBar
The specified scrollbar value is greater than the maximum scrollbar
value minus the scrollbar slider size.
when creating the matrix and trying to scroll vertically through the list.
Scrolling through the list does not work correctly - the bar moves
but the list does not scroll.
I am using XDesigner to create the matrix widget and when I do so,
it gives me errors about the vertical scrollbar as well. But when I
look at the code it generates, everything seems to be ok. ( See
the end of this message for code snippet.) I have tried commenting
out various resources and also replaced the XtCreateWidget with
your convenience routine but that made no difference.
Previously, I was using Xbae4.7.3 and didn't get these errors.
However, the vertical scroll bars would appear before they needed
and then would disappear after a certain number of items were added.
Robin Riskedahl
Orbital Sciences, TMS
XtSetArg(al[ac], XmNallowColumnResize, TRUE); ac++;
XtSetArg(al[ac], XmNbuttonLabels, FALSE); ac++;
XtSetArg(al[ac], XmNcellHighlightThickness, 0); ac++;
from_value.addr =
"Owner,Event\nType,Category,Date,Time,Seq#,Vehicle#,Route#,Run#,Location" ;
from_value.size = strlen( from_value.addr ) + 1;
to_value.addr = NULL;
XtConvertAndStore (event_scrolled_list_form, XmRString, &from_value,
XmRStringArray, &to_value);
if ( to_value.addr )
{
XtSetArg(al[ac], XmNcolumnLabels, (*((String **) to_value.addr)));
ac++;
}
from_value.addr = "20,15,20,10,5,8,8,7,5,50" ;
from_value.size = strlen( from_value.addr ) + 1;
to_value.addr = NULL;
XtConvertAndStore (event_scrolled_list_form, XmRString, &from_value,
XmRWidthArray, &to_value);
if ( to_value.addr )
{
XtSetArg(al[ac], XmNcolumnWidths, (*((short **) to_value.addr))); ac++;
}
XtSetArg(al[ac], XmNcolumns, 10); ac++;
XtSetArg(al[ac], XmNfill, TRUE); ac++;
XtSetArg(al[ac], XmNgridType, XmGRID_CELL_SHADOW); ac++;
XtSetArg(al[ac], XmNrows, 1); ac++;
XtSetArg(al[ac], XmNscrollBarPlacement, 252); ac++;
XtSetArg(al[ac], XmNselectScrollVisible, FALSE); ac++;
XtSetArg(al[ac], XmNtopRow, 0); ac++;
XtSetArg(al[ac], XmNheight, 200); ac++;
XtSetArg(al[ac], XmNtraversalOn, FALSE); ac++;
XtSetArg(al[ac], XmNnavigationType, XmNONE); ac++;
event_matrix = XtCreateWidget("event_matrix", xbaeMatrixWidgetClass,
event_scrolled_list_form, al, ac);