Button.setUseStock

void setUseStock(bool useStock)

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

Parameters

useStocktrue if the button should use a stock item