Page 1 of 1
Why not?
Posted: Wed Jul 28, 2021 3:42 pm
by andresdt
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
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.
Re: Why not?
Posted: Wed Jul 28, 2021 6:37 pm
by Bernard
on 2)
Are you looking for something different to this?
Re: Why not?
Posted: Wed Jul 28, 2021 7:11 pm
by andresdt
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?
Re: Why not?
Posted: Wed Jul 28, 2021 10:38 pm
by andresdt
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
Re: Why not?
Posted: Thu Jul 29, 2021 3:53 am
by PaulDaMacMan
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
Re: Why not?
Posted: Thu Jul 29, 2021 7:41 am
by stam
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...
Re: Why not?
Posted: Thu Jul 29, 2021 4:30 pm
by andresdt
Maybe the solution is that

. Create an image container widget, which can be configured by roundRadio.

Re: Why not?
Posted: Thu Jul 29, 2021 5:00 pm
by FourthWorld
Setting the backgroundPattern of a vector shape made with the drawing tools can work well under many circumstances.
Re: Why not?
Posted: Thu Jul 29, 2021 8:12 pm
by andresdt
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"
Re: Why not?
Posted: Thu Jul 29, 2021 8:59 pm
by FourthWorld
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.
Re: Why not?
Posted: Fri Jul 30, 2021 1:43 am
by andresdt
I would like it very much, but I don't know much about C ++

, 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.

Re: Why not?
Posted: Fri Jul 30, 2021 2:08 am
by FourthWorld
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.
Re: Why not?
Posted: Fri Jul 30, 2021 6:10 pm
by jacque
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.