• [BUG] DComboBox choices are unselectable when the DFrame is made modal.
    0 replies, posted
[CODE] local Window = vgui.Create( "DFrame" ) Window:SetPos( 20, 20 ) Window:SetSize( 600, 400 ) Window:SetTitle( "Window" ) Window:SetVisible( true ) Window:SetDraggable( false ) Window:ShowCloseButton( true ) Window:SetBackgroundBlur( true ) Window:SetDrawOnTop( true ) LengthSelect = vgui.Create("DComboBox") LengthSelect:SetParent(Window) LengthSelect:SetPos(100, 115) LengthSelect:SetSize(200, 20) LengthSelect:AddChoice("b", "Option 1", true) LengthSelect:AddChoice("c", "Option 2") LengthSelect:AddChoice("z", "Option 3") Window:Center() Window:SetMouseInputEnabled(true) Window:MakePopup() [/CODE] This code works. If I do that, then there's no problem. However, when I add Window:DoModal() and then when I click the combo box, the options are drawn but they are not selectable. Does that only when it's part of modal'd frame. [IMG]http://i.imgur.com/JPcSf.png[/IMG] (my mouse was hovering over one of the options)
Sorry, you need to Log In to post a reply to this thread.