use that ctlSelectEvent for checkboxes

For a table with checkboxes, use tblSelectEvent.  If you look in the
documentation, tblSelectEvents return the row, column, table ID and so
forth.

Anyway, say all of your checkboxes were in column 0.
case tblSelectEvent:
    switch (col){
        case 0:
            int x = TblGetItemInt( tableP, row, col);
            break;
    }

x will be the value of the checkbox: 0 or 1.

You can either get their values when you close the screen all at once or you
can do it when the checkbox is clicked (as shown above).

"Hari Warrier" <[EMAIL PROTECTED]> wrote in message
news:40330@palm-dev-forum...
>
> You can handle ctlSelectEvent ..or ...
> just forget about handling events and call
> CtlGetValue() when you really need the value.
>
> "ajitnk" <[EMAIL PROTECTED]> wrote in message
> news:40316@palm-dev-forum...
> >
> > Hi everybody,
> >
> > i have a table with 6 rows on the UI with a checkbox in one of the
> columns.
> > how do i handle the checkbox events?
> >
> > i want to find out which checkbox is checked/unchecked .
> > how do i do it?
> >
> > which  is the Event that i have to handle ?
> >
> > any peice of code would be very much useful.
> >
> >
> > thanx
> > Regards
> > Ajit
> >
> >
> >
>
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to