A selectable Panel Container for use with ACE3 GUI
To use this:
local selpanel = AceGUI:Create("SelectablePanel") selpanel:SetKey(key) -- Unique identifier selpanel:SetFullWidth(true) selpanel:SetHeight(300) viewframe.panels[key] = selpanel -- Add to an array of panels so I can iterate through them to clear them when i select a different panel. selpanel:SetCallback("OnClick", function(widget, _, selected, button) viewframe:clearpanels(widget, selected) -- Clear Panels allows you to clear other panels in an array when you select this one. end)<br /><br />-- add a label to the panel<br />local label = AceGUI:Create("Label")<br />label:SetText(sequencename)<br />label:SetFont(fontName, fontHeight + 4 , fontFlags)<br />selpanel:AddChild(label)<br /><br />...<br />container:AddChild(selpanel) -- Add it for display<br /><br /><br />