View topic - Select all items of a PtList?

Select all items of a PtList?

anything that doesn't fit to other groups.

Select all items of a PtList?

Postby HansHans » Mon Jun 28, 2010 12:22 pm

Hi,

how can I select all items of a PtList? It seems like there is no function PtListSelectAll().
HansHans
Active Member
 
Posts: 21
Joined: Fri Aug 21, 2009 6:44 am

Postby HansHans » Tue Jun 29, 2010 6:23 am

Ok, meanwhile I tried this code:

Code: Select all
PtSetArg(&args[0],Pt_ARG_ITEMS,&items,&num);
PtGetResources(widget,1,args);
for (i=0; i<*num; i++) PtListSelectPos(widget,i+1);


The PtList is of selection type Pt_RANGE_MODE but nothing happens, no items are selected.
HansHans
Active Member
 
Posts: 21
Joined: Fri Aug 21, 2009 6:44 am


Return to General Programming

Who is online

Users browsing this forum: No registered users and 3 guests