D DPaul Active Member Licensed User Longtime User Mar 30, 2017 #1 Hi, Has anybody ever seen a button (= b4a view) that is not square or rectangular. In particular i'm looking for triangles and anything with 4 corners, not being one of the above? (Yes, i can draw shapes on a panel and find out the click coordinates, that's what i'm trying to avoid) Paul
Hi, Has anybody ever seen a button (= b4a view) that is not square or rectangular. In particular i'm looking for triangles and anything with 4 corners, not being one of the above? (Yes, i can draw shapes on a panel and find out the click coordinates, that's what i'm trying to avoid) Paul
dibb3386 Member Licensed User Longtime User Mar 30, 2017 #2 Hello see Erels canvas object post on this thread https://www.b4x.com/android/forum/threads/draw-any-shape.65721/#post-416165 Upvote 0
Hello see Erels canvas object post on this thread https://www.b4x.com/android/forum/threads/draw-any-shape.65721/#post-416165
Erel B4X founder Staff member Licensed User Longtime User Mar 31, 2017 #3 You can also use images as the button's background with any shape you like. The button will be square but it will not look square. Upvote 0
You can also use images as the button's background with any shape you like. The button will be square but it will not look square.
D DPaul Active Member Licensed User Longtime User Mar 31, 2017 #4 Thank you for your reply, but that is the classic solution that i know already, and would like to avoid. Why aren't there triangular (or customisable!) buttons? Makes sense, would economize space, and look good ! Really! Buttons are discrete, binary, you pushed it or you did not. Drawn, view-like shapes on a canvas, sometimes are a problem when touches become swipes and/or cross the lines. Not to speak of the extra coding :-( PS. I typed this simultaneously with Erels post. Have to think now about that. Paul Upvote 0
Thank you for your reply, but that is the classic solution that i know already, and would like to avoid. Why aren't there triangular (or customisable!) buttons? Makes sense, would economize space, and look good ! Really! Buttons are discrete, binary, you pushed it or you did not. Drawn, view-like shapes on a canvas, sometimes are a problem when touches become swipes and/or cross the lines. Not to speak of the extra coding :-( PS. I typed this simultaneously with Erels post. Have to think now about that. Paul
D DPaul Active Member Licensed User Longtime User Mar 31, 2017 #5 Solved (for me). Create a panel , load it with bitmaps() as app resquests, put transparent views on top that receive the clicks. Minimum coding, maximum effect. Upvote 0
Solved (for me). Create a panel , load it with bitmaps() as app resquests, put transparent views on top that receive the clicks. Minimum coding, maximum effect.