Selectionbox maximal selections

Hello

Can someone tell me if there is any method to set the maximum ofitems which can be selected with a selectionbox?

I want that the user can maximal select 3 items.

Thanks for help!SolidworksApi macros