Round Buttons?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: Round Buttons?

Post by dunbarx » Sun Sep 15, 2024 1:56 am

Stam.

Though I am not, on principle, against funning Richmond, I was trying to make the point that a button with its style set to "oval" is still a rectangle. It "appears" to be round, but is not.

At, say, 135° from the center, that is, toward the topLeft, and outside the visual circle, the button still exists, because the rectangle containing that visual circle is still, well, a rectangle.

When Richmond made his post, I think he was talking about a true circular object; not a visual circle drawn inside a rectangle. One is an existing native style. The other is a new native instance of a button. One merely requires a property setting and only changes the "look". The other requires fiddling with the engine.

Craig

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: Round Buttons?

Post by dunbarx » Sun Sep 15, 2024 1:59 am

And a widget, as has been mentioned, using LCB, is a method of "fiddling" with the engine.

Craig

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Round Buttons?

Post by richmond62 » Sun Sep 15, 2024 7:16 am

No, I was NOT talking about a 'genuinely' round button: so, Craig, I am sorry to have to tell you that your telepathy is slightly out of whack. :D

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: Round Buttons?

Post by dunbarx » Sun Sep 15, 2024 1:30 pm

Richmond. You wrote:
Is there a relatively simple way (i.e. inwith LiveCode) to make new controls such as round buttons?
and you posted a round image. Several here somehow took that to mean a round button, and asserted it is not possible.

When you then posited that an ordinary button can have its style property set to "oval", I simply pointed out that such a button looks round, but actually is still a rectangle, that rectangle being larger than the visible circle. One can click on four areas outside the circle and, say, a resident mouseUp handler will fire. Because the button is not actually round.

Bottom line, I somehow thought you wanted "to make new controls such as round buttons".

Telepathy?

Craig

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Round Buttons?

Post by richmond62 » Sun Sep 15, 2024 7:01 pm

Several here somehow took that to mean a round button
I feel that the emphasis should be on somehow.
-
Screenshot 2024-09-13 at 15.15.55.png
Screenshot 2024-09-13 at 15.15.55.png (40.24 KiB) Viewed 5325 times
-
This gave NO indication whatsoever whether this was inwith a guiding rectangle or not

This is NOT problematic from my point of view:
-
Screenshot 2024-09-15 at 21.11.58.png

Post Reply