Adde test for the column sort indicator.

This commit is contained in:
slamm%netscape.com 1998-10-08 22:13:33 +00:00
Родитель 9388899fca
Коммит 24cc854c31
1 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

@ -51,9 +51,9 @@ typedef struct
DbTableColumn dbTableColumns[] =
{
{ Desc, "Description", 16, XmALIGNMENT_LEFT, True },
{ Price, "Price", 9, XmALIGNMENT_RIGHT, True },
{ Qty, "Qty", 5, XmALIGNMENT_RIGHT, True },
{ UnitPrice, "Unit Prc", 9, XmALIGNMENT_RIGHT, False },
{ Price, "Price", 9, XmALIGNMENT_LEFT, True },
{ Qty, "Qty", 5, XmALIGNMENT_LEFT, True },
{ UnitPrice, "Unit Prc", 9, XmALIGNMENT_LEFT, False },
{ Buyer, "Buyer", 15, XmALIGNMENT_LEFT, True },
};
@ -188,6 +188,10 @@ XtPointer callData;
XmNcolumnPtr, column,
XmNcolumnUserData, &columnUserData,
NULL);
XtVaSetValues(w,
XmNcolumn, cbs->column,
XmNcolumnSortType, XmSORT_ASCENDING,
NULL);
setRowKeysInGridSorted(w, (DbTableColumnID)columnUserData);
XmLGridRedrawAll(w);
}