Guide or Tutorial.

Moderators: LCMark, LCfraser

Post Reply
Kevin
Posts: 72
Joined: Fri Oct 02, 2009 3:47 pm

Guide or Tutorial.

Post by Kevin » Thu Jan 03, 2019 1:26 pm

Is there a language guide, interoperability guide for LCB? I am particularly interested in the "foreign" API calls for each of my platforms Windows, Linux, OSX, iOS Apple not CISCO and Android. From the material I have read, it is a considerable leap forward and will hopefully provide a level of integration to replace externals. Please correct my understanding is incorrect.

Many Thanks,

bogs
Posts: 3121
Joined: Sat Feb 25, 2017 10:45 pm

Re: Guide or Tutorial.

Post by bogs » Thu Jan 03, 2019 2:04 pm

There is, but I think the last time I looked at it, it was pretty vague (but improving). I thought to link to this video from Trevor, but I don't think it will give you enough of what your going to need to get going in it since it relates to LCB as far as his framework goes only.

Most of the other information I've found on LCB comes from the forum members themselves, but it is possible you might gain some insight going through that list.

Other than that, the best information I know of is in the dictionary under the [guide] tab...
Selection_001.png
Guiding light...
Image

capellan
Posts: 597
Joined: Wed Aug 15, 2007 11:09 pm
Contact:

Re: Guide or Tutorial.

Post by capellan » Thu Jan 10, 2019 1:04 am

Probably LiveCode Builder programmers could benefit a lot from
reading a lot of sample scripts created using LiveCode Scripts
and then reading the same script written using LiveCode Builder.

Could we script a code translator (or code translator helper)
from LCS-->LCB? :?:

Al

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1962
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Guide or Tutorial.

Post by [-hh] » Thu Jan 10, 2019 1:59 am

Most of LCS is written using controls and their messages.
There are no controls (buttons, fields, images, graphics etc.) in LCB, only the widget itself. You don't even have any keyboard support in LCB ...
shiftLock happens

capellan
Posts: 597
Joined: Wed Aug 15, 2007 11:09 pm
Contact:

Re: Guide or Tutorial.

Post by capellan » Thu Jan 10, 2019 5:12 am

Hi Hermann,
[-hh] wrote:
Thu Jan 10, 2019 1:59 am
Most of LCS is written using controls and their messages.
There are no controls (buttons, fields, images, graphics etc.) in LCB, only the widget itself.
You don't even have any keyboard support in LCB ...
Could LCB widgets receive mouse messages? (mouseUp, etc...)

Al

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1962
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Guide or Tutorial.

Post by [-hh] » Thu Jan 10, 2019 10:51 am

Hi Al.
Al wrote:Could LCB widgets receive mouse messages? (mouseUp, etc...)
Yes, all kinds. But you can not (yet) ask for modifier keys in the handlers.
And you can use these messages in the script of a widget only if they are implemented and passed by the widget to its LCS script.

Perhaps this is may serve as a first rough attempt:

Imagine the widget is a group that has an own "main script" (LCB) that decides what you can use in its ordinary LCS script. And this imaginary group cannot contain any controls but it has one object for display: the canvas. This display is done in the central handler "OnPaint" of the "main script". The available methods are closer to SVG (ordinary "draw") than to Bitmap (ordinary "paint").

You cannot send messages to the widget but close to that: You can "do <something> in widget" from LC Script if the widget has implemented a handler "OnDo" that does that <something>.

I wrote a basic template. One could start with that to have a running example and play with it.
Find this template (= snippet#51) and some more or less advanced snippets here
viewtopic.php?f=93&t=28225

The LC Extension Builder runs fine in LC 8.1.10 and is enhanced (close to comfortable) in LC 9.0.2.

Hermann
shiftLock happens

capellan
Posts: 597
Joined: Wed Aug 15, 2007 11:09 pm
Contact:

Re: Guide or Tutorial.

Post by capellan » Thu Jan 10, 2019 9:27 pm

This is great news! :D
Many, many thanks for taking time for answering this question.

Previously, I have tried (and failed) to follow the LCB tutorial
in Windows and Linux. I will try again, this time on Mac.

Each time that my computers fail to run a stack or fail
to complete successfully a tutorial, instead of reporting
I just try my best to understand why it failed.

Probably I should keep asking for feedback until
an answer is found.

Al

Post Reply

Return to “LiveCode Builder”