With this code I am able to add Items to the list, and by using
PT_ARG_SELECTION_INDEXES I am getting Indexes of list item, Now I want to
get selected items by using the index number.
Urgent please!
Looking forward with this mail,
Regards,
Suresh Kumar. Kavula.
With this code I am able to add Items to the list, and by using
PT_ARG_SELECTION_INDEXES I am getting Indexes of list item, Now I want to
get selected items by using the index number.
Urgent please!
Looking forward with this mail,
Regards,
Suresh Kumar. Kavula.
I use the below:
unsigned short gphoton_ptlist_get_single_sel_index (PtWidget_t * widget)
{
unsigned short * index = NULL;
PtGetResource(widget,Pt_ARG_SELECTION_INDEXES,&index,0);
return * index;
}
char * gphoton_ptlist_get_single_sel (PtWidget_t * widget)
{
char ** items;
unsigned short * len;
unsigned short selected;
With this code I am able to add Items to the list, and by using
PT_ARG_SELECTION_INDEXES I am getting Indexes of list item, Now I want
to
get selected items by using the index number.
Urgent please!
Looking forward with this mail,
Regards,
Suresh Kumar. Kavula.
I use the below:
unsigned short gphoton_ptlist_get_single_sel_index (PtWidget_t * widget)
{
unsigned short * index = NULL;
PtGetResource(widget,Pt_ARG_SELECTION_INDEXES,&index,0);
return * index;
}
char * gphoton_ptlist_get_single_sel (PtWidget_t * widget)
{
char ** items;
unsigned short * len;
unsigned short selected;