Page 1 of 1
Guide or Tutorial.
Posted: Thu Jan 03, 2019 1:26 pm
by Kevin
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,
Re: Guide or Tutorial.
Posted: Thu Jan 03, 2019 2:04 pm
by bogs
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...
- Guiding light...
Re: Guide or Tutorial.
Posted: Thu Jan 10, 2019 1:04 am
by capellan
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
Re: Guide or Tutorial.
Posted: Thu Jan 10, 2019 1:59 am
by [-hh]
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 ...
Re: Guide or Tutorial.
Posted: Thu Jan 10, 2019 5:12 am
by capellan
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
Re: Guide or Tutorial.
Posted: Thu Jan 10, 2019 10:51 am
by [-hh]
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
Re: Guide or Tutorial.
Posted: Thu Jan 10, 2019 9:27 pm
by capellan
This is great news!
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