Why not?

Want to talk about something that isn't covered by another category?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
andresdt
Posts: 146
Joined: Fri Aug 16, 2019 7:51 pm

Why not?

Post by andresdt » Wed Jul 28, 2021 3:42 pm

First I must clarify that I am not criticizing LiveCode. I wonder out loud, maybe someone can answer me or just agree or disagree with what I'm going to ask.
I have been trying to perform inertial scrolling behavior. This will be used as behavior in groups and fields in Windows. In other words, the native is not good for me.

Mmm native :evil:

In my hours of hitting the wall, I discovered that in C ++ is already implemented . Now comes the first of my questions.
1. Why doesn't LiveCode have that implemented internally.
In other words, it would be much more efficient than any solution you can find using the LiveCode script.

The other one of my questions out loud is:
2. It is very difficult to make groups that can be fashionable?. That is, have rounded edges.

Bernard
Posts: 351
Joined: Sat Apr 08, 2006 10:14 pm
Location: London, England

Re: Why not?

Post by Bernard » Wed Jul 28, 2021 6:37 pm

on 2)

Are you looking for something different to this?
Screenshot 2021-07-28 at 18.33.14.png

andresdt
Posts: 146
Joined: Fri Aug 16, 2019 7:51 pm

Re: Why not?

Post by andresdt » Wed Jul 28, 2021 7:11 pm

well I am going to give an example regarding the rounded edges that I am looking for.
Let's say I have an app that has an image gallery. which will be obtained from an external provider. So I can't use Photoshop to round all the images.
Now, where the images are shown I have a field with its description that would be something like the cards in boostrap, material design...

Currently this can be done in LiveCode. But I can't think of any other way than to put a graphic where the image is. Hide the image and set it as a pattern on the chart.
What I would like, and why I like it, does not have to be that way.
It is to be able to tell the group to be rounded on all sides and to cut the line of their children at the edges. In other words, you would no longer have to use the graphic to display an image. Otherwise I would use the image and put the round edges of the group and worry about other things.
This would also be very useful if you wanted to put an avatar in a circle.
How do you do it now if not using a graphic as an image?
Attachments
img.png
img.png (10.67 KiB) Viewed 5389 times

andresdt
Posts: 146
Joined: Fri Aug 16, 2019 7:51 pm

Re: Why not?

Post by andresdt » Wed Jul 28, 2021 10:38 pm

Well apparently someone else needs to be able to round the edges. In this case of an image: viewtopic.php?f=8&t=36152

this can be suggested as a new feature for LiveCode. The power to round the vordes at will and easily as in other modern languages.
round radio property

PaulDaMacMan
Posts: 616
Joined: Wed Apr 24, 2013 4:53 pm
Contact:

Re: Why not?

Post by PaulDaMacMan » Thu Jul 29, 2021 3:53 am

Maybe not exactly what you are looking for, but I recall that Trevore Devore made a widget that can round individual corners with an image rendered inside.

https://github.com/trevordevore/livecod ... orners.lcb
My GitHub Repos: https://github.com/PaulMcClernan/
Related YouTube Videos: PlayList

stam
Posts: 2634
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Why not?

Post by stam » Thu Jul 29, 2021 7:41 am

Yep was gonna say exactly the same Paul - i do use this on occasion and it works well...
Also shows what's possible if you're handy with LCB...

andresdt
Posts: 146
Joined: Fri Aug 16, 2019 7:51 pm

Re: Why not?

Post by andresdt » Thu Jul 29, 2021 4:30 pm

Maybe the solution is that :idea: . Create an image container widget, which can be configured by roundRadio. :( :cry:

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Why not?

Post by FourthWorld » Thu Jul 29, 2021 5:00 pm

Setting the backgroundPattern of a vector shape made with the drawing tools can work well under many circumstances.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

andresdt
Posts: 146
Joined: Fri Aug 16, 2019 7:51 pm

Re: Why not?

Post by andresdt » Thu Jul 29, 2021 8:12 pm

I know that most of us who use LiveCode, we learn certain tricks to carry out our objectives.
If I can't rounRadio an image, then I put the image inside a graph and round the graph.
My questions are not that something cannot be achieved here. But because so much work is spent with something that is simple in any other language.
I don't know how rounding the edges of graphics and buttons is implemented in the LiveCode engine. But it seems to me that with a Copy and Paste. Images and groups can be made to have this property.
Now imagine for a moment not having to use a graph to display an image. But show the picture ready

someone has an idea to do my other suggestion. "momentum scrolling"

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Why not?

Post by FourthWorld » Thu Jul 29, 2021 8:59 pm

Sure, if you're in a position to help integrate the source you found into the engine that would be great.

And in the meantime, a one-liner to display the image in a graphic may be helpful for those looking for an immediate solution.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

andresdt
Posts: 146
Joined: Fri Aug 16, 2019 7:51 pm

Re: Why not?

Post by andresdt » Fri Jul 30, 2021 1:43 am

I would like it very much, but I don't know much about C ++ :oops: , plus I have not managed to compile the LiveCode source code on my PC.
When I achieve it I will try to do it, I can make sure of that. :D

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Why not?

Post by FourthWorld » Fri Jul 30, 2021 2:08 am

That would be awesome. In the meantime if you add that to the request queue with a link to that source perhaps someone else may be able to take action on it.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7215
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Why not?

Post by jacque » Fri Jul 30, 2021 6:10 pm

andresdt wrote:
Thu Jul 29, 2021 8:12 pm
someone has an idea to do my other suggestion. "momentum scrolling"
A script was posted to the mailing list many years ago:
https://www.mail-archive.com/use-liveco ... 86290.html
Scott Rossi also created a nice one and I have his sample stack but I'm not sure if I can distribute it here.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Off-Topic”