Hot to make Derma to take advantage of custom pos/size in the cPanel

Hello,

So I was Trying Some stuff:




  -- http://wiki.garrysmod.com/page/Category:DTextEntry
  local pText = vgui.Create("DTextEntry")
        pText:SetPos( 2, 300 ) 
        pText:SetTall(18)
        pText:SetText("List of Bodygroup IDs separated with commas.")
        pText.OnEnter = function( self )
          RunConsoleCommand("trackassembly_bgrpids",self:GetValue())
        end
        CurY = CurY + pText:GetTall() + 2

  -- http://wiki.garrysmod.com/page/Category:DButton
  local pButton = vgui.Create("DButton")
        pButton:SetParent(CPanel)
        pButton:SetText("V Click to AUTOFILL Bodygroup IDs list from Trace V")
        pButton:SetPos(2,CurY)
        pButton:SetTall(18)
        pButton.DoClick = function()
          local sBG = AssemblyLib.GetBodygroupString() --- Returns for example "0,1,1" ( not important for this post )
          pText:SetValue(sBG)                          --- Sends "0,1,1" into the Text field.
          RunConsoleCommand("trackassembly_bgrpids",sBG)
        end
        CurY = CurY + pButton:GetTall() + 2
  CPanel:AddItem(pButton)
  CPanel:AddItem(pText)



In the code Above instead of “Obj:SetTall(18)” I inserted custom position/Sizes.



  pText:SetPos( 20,MaxY ) -- With MaxY being the maximum available current empty Y
  pText:SetSize((MaxX - 20),18) -- Tall 18 and leave some space of 18 pixels for a Button in front
  -----
  pButton:SetPos( 2,MaxY ) -- With MaxY being the maximum available current empty Y
  pButton:SetSize(18,18) -- To X and Y 18 make it square, in the left relative to the text field


However Derma Always draws the button above the text field, regarding of the positions/sizes:



  CPanel:AddItem(pButton)
  CPanel:AddItem(pText)