Button Set Label
Posted: Sat Jul 22, 2017 1:22 am
I'm working in Moho 12.2 and trying to change labels on an existing button to let people know if they have been assigned values or not. In a nut shell, I am using:
function OG_Camera_Manager:HandleMessage(moho, view, msg)
if (msg == self.BUTTON1) then
LM_BUTTON.BUTTON1:SetLabel("xxxx")
end
end
The result is an error: attempt to index global 'LM_BUTTON' (a nil value).
Any help would be appreciated.
Sorry to be a newb.
function OG_Camera_Manager:HandleMessage(moho, view, msg)
if (msg == self.BUTTON1) then
LM_BUTTON.BUTTON1:SetLabel("xxxx")
end
end
The result is an error: attempt to index global 'LM_BUTTON' (a nil value).
Any help would be appreciated.
Sorry to be a newb.