Arc slider
-
@ulrik Amazing! Forgot the function has override!
-
@ustk said in Arc slider:
@ulrik Amazing! Forgot the function has override!
Yes I had also forgot it, but I found it in the documentation.
So, what does "override" really means? -
@ulrik A function override is the concept of writing the same function but for different parameters (type and or number of arguments). The compiler selects which one to use.
Although here it might not be a function override contrary to what I said, but probably more a simple check of the array in one unique function.
-
@ustk thanks!
-
@ustkHello. I tried to set a gradient, but instead of an arch I got default buttons
-
@ulrikHello. An attempt to apply the gradient failed. I got the buttons. default)
-
-
-
@udalilprofile if it's inside a laf, you need to get the width and height from the obj.area
"this" will not workg.setGradientFill([Colours.blue, 0, 0, Colours.red, obj.area[2], obj.area[3]]);
-
@udalilprofile when working with look and feel functions, it's very informative to
Console.print(trace(obj));
you will get all the information that is used inside.
Same inside a keyPressCallback, use Console.print(trace(obj));
or inside a mouseCallback, Console.print(trace(event));