View Single Post
08-30-23, 11:31 PM   #6
scottingram
A Murloc Raider
Join Date: Aug 2023
Posts: 7
I tried to use SecureActionButtonTemplate

I changed my code from:
Code:
    local protoGerm = CreateFrame("CheckButton", myName, parent, "SmallActionButtonTemplate, SecureHandlerClickTemplate")
to
Code:
    local protoGerm = CreateFrame("CheckButton", myName, parent, "SmallActionButtonTemplate, SecureActionButtonTemplate")
but it breaks
self:SetFrameRef("flyoutMenu", self.flyoutMenu)
with
Message: Interface/AddOns/UFO/Germ.lua:167: attempt to call method 'SetFrameRef' (a nil value)
��

As a SecureHandlerClickTemplate it can flyoutMenu:Show() & Hide()

Can you suggest some alternative approach to accomplish Show()/Hide() with a SecureActionButtonTemplate ?

Last edited by scottingram : 08-30-23 at 11:37 PM.
  Reply With Quote