trying to create DTextEntry for each item in the table using this
for k,v in pairs(table.content) do
local textbyinput = vgui.Create( "DLabel", scrollpanel )
textbyinput:SetText( v )
textbyinput:Dock( TOP )
textbyinput:DockMargin( 0, 0, 0, 5 )
local textinput = vgui.Create("DTextEntry", scrollpanel);
textinput :SetMultiline( false )
textinput :Dock( TOP )
textinput :SetText( k )
textinput :DockMargin( 0, 0, 0, 5 )
end
end
but i cant grab any data from the input this way so i'm wondering if their is another way to do this.
when i try to do something like scrollpanel.Add i get a error as i never really done anything ui related in gmod
Sorry, you need to Log In to post a reply to this thread.