MinAutoTextSize||doc136499

September 20, 2022

Format

Button.MinAutoTextSize

Describe

This attribute limits the buttonsButton.AutoTextSizeAttribute istrueMinimum text size when.

Code Example

image.png

-- create layout window
local APIRootWindow = UI:CreateGUIWindow("API")

--Set the window to the root node of the UI
APIRootWindow.Parent = UI.Root

--Get the Button control for testing according to the name
local button = APIRootWindow.APIButton

--Set the minimum adaptive text size of the button control
button.MinAutoTextSize = 12