Jump to content

Refrence a label inside a tab


benwilkins

Recommended Posts

local currentTab = guiGetSelectedTab(tabPanel)
local currentTabText = currentTab[guiGetText(label)]
local currentTab = guiGetSelectedTab(tabPanel)
local currentTabText = currentTab.guiGetText(label)
local label = guiCreateLabel (0.04, 0.04, 1, 1, "Value #1",        true,    tab)

 

Above is my example code..

I create multiple tabs, and each tab has exactly the same label names, just different values.

 

How can I get the value of something in say, "Tab 1", "Label 1", but outside of the tab creation area. Further down the scripts.

 

 

I know it is possible, I have done it before, I just completely forgot how.

I forgot to mention, first 2 blocks of code is what I have tried, and doesn't work.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...