Button Handler ButtonStates
1.
I want to remove the setted Handler within the "OnClicked" event. How can I do this. I dont know witch parameters the "function(.....) " (the 2. parameter of "button:SetHandler()" can use and how to access the button itself. "self" does not work here. My Example function --- which will set the button handler: Code:
function addon.InitControls(rowNumber) 2. How to Change the Button State in Code. I know hot to hide a control Code:
deleteButton:SetHidden(true) |
Quote:
buttonControl:SetEnabled(false) https://wiki.esoui.com/Controls#ButtonControl |
Thanks's a lot for your help.
(the big votan answered my question :banana:) |
If you need more parameters try to use control:SetHandler("OnMouseUp", function(control, button, upInside)).
control: Your control clicked button: MouseButtonIndex (the mouse button used): Code:
MOUSE_BUTTON_INDEX_4 |
All times are GMT -6. The time now is 06:54 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI