narek adonts Well-Known Member Licensed User Longtime User Mar 16, 2015 #1 Hi, How to create circle shape button. I have tried to do it with SetBorder with rounded corner but when i click outside the circle the click event is activated. Any idea? Narek
Hi, How to create circle shape button. I have tried to do it with SetBorder with rounded corner but when i click outside the circle the click event is activated. Any idea? Narek
omidaghakhani1368 Well-Known Member Licensed User Longtime User Mar 16, 2015 #2 I offer you to set radius value to 50 and you button convert to circle Upvote 0
narek adonts Well-Known Member Licensed User Longtime User Mar 16, 2015 #3 as I mentioned below i have tried this but when I am clicking a bit outside the circle the click event is fired. That means that visual it is circle but the part outside the circle is also part of a button but transparent. Narek Upvote 0
as I mentioned below i have tried this but when I am clicking a bit outside the circle the click event is fired. That means that visual it is circle but the part outside the circle is also part of a button but transparent. Narek
Erel B4X founder Staff member Licensed User Longtime User Mar 16, 2015 #4 You can draw a circle on a transparent panel and then calculate the touch distance from the center (in the Touch event). Upvote 0
You can draw a circle on a transparent panel and then calculate the touch distance from the center (in the Touch event).