You can use the PG_WP_EXTDEVENTS property to change the button's flags. Since a 
listitem is just a button with different default themes and flags, this is easy to do. 
By looking in pgserver/widget/listitem.c you can see that by default the 
PG_EXEV_TOGGLE and PG_EXEV_EXCLUSIVE flags are on. (Sorry.. i've documented the 
properties, but not the defaults yet) Since you want the button to toggle but you 
don't want them to be mutually exclusive, you can use:

  pgSetWidget(myItem,
              PG_WP_EXTDEVENTS, PG_EXEV_TOGGLE,
              0);

On Fri, Apr 19, 2002 at 11:47:50AM -0600, Gray, Tim wrote:
> How exactly do I set the widget to allow multiple ListItems to be selected?
> right now I can click on an item to highlight/select it but clicking on
> another item deseclets the first and selects the second.  I want to be able
> to toggle each item as selected/unselected.  is this possible with the
> current code?
> 
> 
> thanks
> 
> 
> _______________________________________________
> Pgui-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/pgui-devel

-- 
Only you can prevent creeping featurism!

_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to