G'day
We have some apps which we are considering converting to LiveCode.
The main hurdle we have is how to convert react layouts to LiveCode layouts.
We've heard this is not possible.
We're hoping it is somehow. We code mainly on Mac's so we could code in AppleScript if need be and if LiveCode has an apple script dictionary.
Cheers and thanks
Keith John Hutchison
Creating UI layouts by code.
Moderators: FourthWorld, heatherlaine, Klaus, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 9386
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Creating UI layouts by code.
Hi.
Welcome to the Forum.
I never heard of "react", but I see it is a page layout builder of some kind. True?
If so, I am sure that it can be built in LiveCode, knowing, however, that LC is not Pagemaker (if even that still exists, and if the analogy is sound).
Can you give a short example of what you need to start with and what you want to end up with?
Craig
Welcome to the Forum.
I never heard of "react", but I see it is a page layout builder of some kind. True?
If so, I am sure that it can be built in LiveCode, knowing, however, that LC is not Pagemaker (if even that still exists, and if the analogy is sound).
Can you give a short example of what you need to start with and what you want to end up with?
Craig
-
- VIP Livecode Opensource Backer
- Posts: 9386
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Creating UI layouts by code.
Thinking about this, assuming I understand what react does, I build reports all the time, assembled from data taken from multiple sources. These reports are "physically" based on templates that I call as needed. Individual elements within each report can be formatted based on their contents.
Does this sound like react?
Craig
Does this sound like react?
Craig
Last edited by dunbarx on Thu Mar 23, 2023 2:32 pm, edited 1 time in total.
Re: Creating UI layouts by code.
@Craig
"React" is a Javascript-ibrary: https://react.dev
@Keith
LC only has "doscript" and "evaluate" in its Apple-Script dictionary.
Means that you would need to script everything in LC first and
then you can evoke these scripts via Apple-Script.
Hope that helps!
Best
Klaus
"React" is a Javascript-ibrary: https://react.dev
@Keith
LC only has "doscript" and "evaluate" in its Apple-Script dictionary.
Means that you would need to script everything in LC first and
then you can evoke these scripts via Apple-Script.
Hope that helps!
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 9756
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Creating UI layouts by code.
Converting HTML/CSS to LC is not trivial. It may be possible to build a tool to help with some of the heavy lifting. Feel free to drop me a PM if this may be of interest.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn