Creating UI layouts by code.

Want to move your code and projects to LiveCode but don't know where to start?

Moderators: FourthWorld, heatherlaine, Klaus, robinmiller

Post Reply
csmu
Posts: 1
Joined: Thu Mar 23, 2023 2:15 am

Creating UI layouts by code.

Post by csmu » Thu Mar 23, 2023 5:06 am

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9567
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Creating UI layouts by code.

Post by dunbarx » Thu Mar 23, 2023 2:25 pm

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9567
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Creating UI layouts by code.

Post by dunbarx » Thu Mar 23, 2023 2:28 pm

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
Last edited by dunbarx on Thu Mar 23, 2023 2:32 pm, edited 1 time in total.

Klaus
Posts: 13793
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Creating UI layouts by code.

Post by Klaus » Thu Mar 23, 2023 2:30 pm

@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

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

Re: Creating UI layouts by code.

Post by FourthWorld » Thu Mar 23, 2023 5:24 pm

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

Post Reply

Return to “Converting to LiveCode”