Page 1 of 1

Creating UI layouts by code.

Posted: Thu Mar 23, 2023 5:06 am
by csmu
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

Re: Creating UI layouts by code.

Posted: Thu Mar 23, 2023 2:25 pm
by dunbarx
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

Re: Creating UI layouts by code.

Posted: Thu Mar 23, 2023 2:28 pm
by dunbarx
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

Re: Creating UI layouts by code.

Posted: Thu Mar 23, 2023 2:30 pm
by Klaus
@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

Re: Creating UI layouts by code.

Posted: Thu Mar 23, 2023 5:24 pm
by FourthWorld
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.