>  -----Original Message-----
> From:         Dhanapalan, Kumar  
> Sent: Friday, March 23, 2001 4:28 PM
> To:   'Danny Backx'
> Subject:      RE: How to add checkboxes on Xbae Matrix
> 
> Hi Danny,
>   Thanks for the sample code. I was able to fix the original problem,
> which was 
> causing the core dump. 
>   But still, the check box is not getting displayed in the column
> 
> I am trying to do some thing which will look like this image. This was
> done using MFC(CListCtrl) on Windows
> (Check Boxs on the first column )
>  <<...OLE_Obj...>> 
>  
> 
> The following is the piece of code,  I call to add rows and display values
> on columns.
> 
> static Widget checkbox;
> void GridAddRow(Widget inputGrid, int num_vals, char *array)
> {
>        int i, row_count;
>       
>        
>       /* already_done is a global variable and set to 0 on window
> destroy*/
>       if(!already_done)
>       {
>               
>               checkbox = XtVaCreateManagedWidget("check",
> xmToggleButtonGadgetClass, inputGrid, NULL);
>               XmToggleButtonGadgetSetState (checkbox, 
>                               mxug_CheckoutDlgUpdateAttrDuringCheckout,
> False);
>               already_done = 1;
>       }
>  
>       /* Get the no. of rows that will be the index for the current row)
> */
>       XtVaGetValues (inputGrid, XmNrows, &row_count, NULL);
> 
>       /*Add Rows*/
>       /* This one works just fine */
>        XbaeMatrixAddRows(inputGrid, row_count, array, NULL, NULL, 1);
>       
>       /*Trying to display a checkbox on first cell of each row */
>       /*This one displays an empty cell( no checkbox  displayed) */
>        XbaeMatrixSetCellWidget(inputGrid, row_count, 0, checkbox);
> 
> }
> 
> -Kumar
> 
> -----Original Message-----
> From: Danny Backx [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 23, 2001 12:52 PM
> To: Dhanapalan, Kumar
> Cc: [EMAIL PROTECTED]
> Subject: Re: How to add checkboxes on Xbae Matrix
> 
> 
> "Dhanapalan, Kumar" wrote:
> >   I am trying to add a checkbox (XmToggleButton) to the first column of
> my
> > Xbae Matrix. Would any one of you please help me with this. Any
> examples....
> 
> In the attachment you'll find the examples/matrix.c program with a couple
> of added lines (near the end).
> 
> Does this help ?
> 
>       Danny
> -- 
> Danny Backx ([EMAIL PROTECTED] [EMAIL PROTECTED])
> Home page :   http://users.skynet.be/danny.backx
> Projects:     LessTif (http://www.lesstif.org)
>               Oleo    (http://www.gnu.org/software/oleo/oleo.html) <<
> File: cell.c >> 

Reply via email to