gre.get control attrs

gre.get_control_attrs(
    control_name
    tags ...
)
            

Get properties for a control.  Key name is the name of the control or a variable.  Tags can be a list of the following values:

        x, y, width, height, hidden, active, zindex, findex

A table with the results is returned.

Parameters: control_name The model full path of the control to get information about tags One or more tags as strings Returns: A table containing the tags as keys with the associated table value being the Storyboard value associated with that tag. Example:

function check_if_hidden()
    local dk_data = {}
    -- check if my_control is currently hidden
    dk_data = gre.get_control_attrs("my_layer.my_control", "hidden")
    if dk_data["hidden"] == 1 then
        print("my_control is currently hidden")
    else
        print("my_control is currently visible")
    end
end
            
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.