[Xbae-discuss] [ xbae-Bugs-719676 ] XmNmultiLineCell + ColumnWidth=1 + ColumnLabel -> core
Brought to you by:
dannybackx
From: SourceForge.net <no...@so...> - 2003-04-14 21:02:42
|
Bugs item #719676, was opened at 2003-04-11 06:21 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=401980&aid=719676&group_id=31337 Category: Bugs Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: XmNmultiLineCell + ColumnWidth=1 + ColumnLabel -> core Initial Comment: If you have set "XmNmultiLineCell" to TRUE and set XmNcolumnLabels to a string (length > 1) Xbae will crahed on setting XmNcolumnWidths to "1" for this column. For XmNcolumnWidths >1 all works right, no crash. With an empty string for that column-label nothing will drawn, it OK, no crash. With "XmNmultiLineCell" to FALSE and XmNcolumnWidths to "1" and a string (length > 1) an Arrow will drawn, thats right. Before crashing many lines or characters will be drawn, which fills an rectangle! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-04-14 14:19 Message: Logged In: NO diff -c matrix/matrix.c.orig matrix/matrix.c *** matrix/matrix.c.orig Mon Apr 14 22:43:53 2003 --- matrix/matrix.c Mon Apr 14 23:02:13 2003 *************** *** 97,102 **** --- 97,108 ---- XbaeMatrixDeselectColumn( mw, cbs->column ); else XbaeMatrixSelectColumn( mw, cbs->column ); + + if (cbs->row == 0) + { + static short widths[] = {1, 1, 1, 1, 1}; + XtVaSetValues(mw, XmNcolumnWidths, widths, NULL); + } } /* *************** *** 128,133 **** --- 134,140 ---- NULL ); XtRealizeWidget(toplevel); + XtVaSetValues(mw, XmNmultiLineCell, TRUE, NULL); XtAppMainLoop(app); /*NOTREACHED*/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-04-14 14:18 Message: Logged In: NO diff -c matrix/matrix.c.orig matrix/matrix.c *** matrix/matrix.c.orig Mon Apr 14 22:43:53 2003 --- matrix/matrix.c Mon Apr 14 23:02:13 2003 *************** *** 97,102 **** --- 97,108 ---- XbaeMatrixDeselectColumn( mw, cbs->column ); else XbaeMatrixSelectColumn( mw, cbs->column ); + + if (cbs->row == 0) + { + static short widths[] = {1, 1, 1, 1, 1}; + XtVaSetValues(mw, XmNcolumnWidths, widths, NULL); + } } /* *************** *** 128,133 **** --- 134,140 ---- NULL ); XtRealizeWidget(toplevel); + XtVaSetValues(mw, XmNmultiLineCell, TRUE, NULL); XtAppMainLoop(app); /*NOTREACHED*/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-04-14 14:17 Message: Logged In: NO // Select first row by clicking row-label "1"! diff -c matrix.c.orig matrix.c *** matrix.c.orig Mon Apr 14 22:43:53 2003 --- matrix.c Mon Apr 14 22:44:15 2003 *************** *** 97,102 **** --- 97,108 ---- XbaeMatrixDeselectColumn( mw, cbs->column ); else XbaeMatrixSelectColumn( mw, cbs->column ); + + if (cbs->row == 0) + { + static short widths[] = {1, 1, 1, 1, 1}; + XtVaSetValues(mw, XmNcolumnWidths, widths, NULL); + } } /* *************** *** 128,133 **** --- 134,140 ---- NULL ); XtRealizeWidget(toplevel); + XtVaSetValues(mw, XmNmultiLineCell, TRUE, NULL); /* using FALSE all is OK! */ XtAppMainLoop(app); /*NOTREACHED*/ ---------------------------------------------------------------------- Comment By: Danny Backx (dannybackx) Date: 2003-04-12 03:43 Message: Logged In: YES user_id=39146 How exactly do you 'set XmNcolumnWidths to "1"' ? A small example program would be wonderful. (You can adapt examples/matrix/matrix.c or to suit your needs.) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=401980&aid=719676&group_id=31337 |