cancel
Showing results for 
Search instead for 
Did you mean: 

Extend the click-able area of a button to the left

Zui
Senior

I have a bunch of toggle buttons wich are on the leftmost area of the screen, but i need them to be selectable through the whole screen width. Is there any alternative of setWidth() function? because that sets width only from starting position to the right, but i need to the left (and if i put togglebutton to the left, the image will be draw in incorrect place)

1 REPLY 1
Martin KJELDSEN
Chief III

You have the source code for buttons, so it's possible to do extend it anyway you want.

You could also "steal" the click at the view level and check if the coordinate intersects with the button along the width of the screen.

What do you think?

/Martin