Disable a toolbar button

BlitzMax Forums/BlitzMax GUI Programming/Disable a toolbar button

Anyone know how to disable a toolbar button? I would gues ModifyGadgetItem() would do this, but I don't see how.

DisableGadgetItem( Toolbar:TGadget ,index )