Originally Posted by Baertram
Defining it outside won't work as the settings could be changed after the handler was set.
And buttonId is a parameter of the calling function AddOrChangeFilterButton. So I guess, and that is what I asked :-), yes: it should be connected to the button control too.
|
hhmmm, when you enter the mouse, it'll use self.tooltiptext aka button.tooltiptext which calls the function, so it should be updated.
i should look at your code first, just don't listen to me. am just writing out loud.
ok, i looked at it... i saw keanu reeves and a colored blob at first but still 2 solutions maybe?
either just redefine
button.buttonId = buttonId
(same with the panelId i suppose)
or button.tooltipText = function(blabla) <-- put this outside of your check :
if (checkIfButtonexists == nil) , so it's updated when it needs to be.
And, the most important here : wait for another advice than mine