From: Dave Weaver <dave@do...> - 2005-12-15 10:34:02
As mentioned previously, I'm emulating a listbox with an XbaeMatrix.
I'm now putting widgets within the matrix, but that causes issues with the
row highlighting and selection colouring.
To illustrate the point, add these lines to the example list3.c that comes
with the XbaeMatrix code. Add them just after the matrix is
Widget label = XtVaCreateManagedWidget(
"some text", xmLabelWidgetClass, mw,
XbaeMatrixSetCellWidget(mw, 1, 1, label);
Now, when the line with the widget is selected/highlighted, the
cell with the widget remains the same colour - even the highlighting
rectangle doesn't get drawn in the cell.
In this example it doesn't look too bad. However in my application, where
there are 3 fairly wide widgets, the large breaks in the selection and
highlight indicators make it look rather ugly.
Any suggestions on how I might attack this problem?