Derma Docking problem

Hi, I want to position derma elements in one row but I don’t know how to do it with Docking.

It depends what direction you mean, but there’s some examples on this page:

Panel:Dock

I want to dock it in one row from left to right. I have a label and I then I want to place a text entry,
something like “Your name text entry for a name” in one row

Do you mean something like this:



local frame = vgui.Create( "DFrame" )
frame:SetTitle( "Dock Test" )
frame:SetSize( ScrW() - 100, ScrH() - 100 )
frame:Center()
frame:MakePopup()

for _ = 0, 10 do
	
	local panel = vgui.Create( "Panel", frame )
	panel:Dock( TOP )

	local label = vgui.Create( "DLabel", panel )
	label:Dock( LEFT )
	label:SetText( "Your name" )

	local box = vgui.Create( "DTextEntry", panel )
	box:Dock( FILL )

end


Yes! Thank you! I will try it