1. Post #1
    Megolas's Avatar
    August 2011
    118 Posts
    Hey, I'm working on a gamemode and as a part of it I created custom panels in vgui.
    Later, I wanted to use DTextEntry, but i can't - the wiki says you can only use it when one of the parents is an "Editable Panel" (Dafuq is that?).
    How do I make my own panels editable?
    Reply With Quote Edit / Delete Reply Windows 7 Israel Show Events Dumb Dumb x 1 (list)

  2. Post #2
    Megolas's Avatar
    August 2011
    118 Posts
    bump?

  3. Post #3
    Merry Fuckin' Christmas
    LuckyLuke's Avatar
    May 2010
    5,335 Posts
    Probably means THIS

  4. Post #4
    Megolas's Avatar
    August 2011
    118 Posts
    no... Anyway - tried to deriving it from EditablePanels (like DFrames) and it didnt work...

  5. Post #5
    GUSTAVGR.COM
    Gustavgr16's Avatar
    September 2011
    264 Posts
    show us your code

  6. Post #6
    Megolas's Avatar
    August 2011
    118 Posts
    which one? Frame or DTextEntry?

  7. Post #7
    zzaacckk's Avatar
    June 2009
    2,140 Posts
    Well for a DTextEntry to work it needs to be focused.. I will assume that Garry called it 'editable' for convenience.

    Also, you should show both parts of your code, errors can be misleading sometimes.

  8. Post #8
    Megolas's Avatar
    August 2011
    118 Posts
    The panel code is long, which part should i post? And the frame that uses it is:
    local dte = vgui.Create("DTextEntry", THECUSTOMFRAME)
    dte:SetSize(250,20)
    dte:SetPos(135,365)

  9. Post #9
    Awesome Gmod Servers!
    brandonj4's Avatar
    September 2011
    2,073 Posts
    The panel code is long, which part should i post? And the frame that uses it is:
    local dte = vgui.Create("DTextEntry", THECUSTOMFRAME)
    dte:SetSize(250,20)
    dte:SetPos(135,365)
    SetSize doesn't exist for DTextEntry I would advise you to look at the wiki if you have any derma problems.
    http://maurits.tv/data/garrysmod/wik...tle=DTextEntry
    You would use:
    local dte = vgui.Create("DTextEntry", THECUSTOMFRAME)
    dte:SetPos(135,365)
    dte:SetWide(220)
    dte:SetTall(20)
    

    For future reference TextEntry uses SetSize.

  10. Post #10
    Megolas's Avatar
    August 2011
    118 Posts
    thanks - but it did work and it didnt error...
    Also, the wiki shows SetSize...

  11. Post #11
    Awesome Gmod Servers!
    brandonj4's Avatar
    September 2011
    2,073 Posts
    thanks - but it did work and it didnt error...
    Also, the wiki shows SetSize...
    The wiki shows SetSize for TextEntry not "D" for derma TextEntry.