Button.setUseStock

If TRUE, the label set on the button is used as a stock id to select the stock item for the button.

class Button
void
setUseStock
()

Parameters

useStock bool

TRUE if the button should use a stock item