Guide or Tutorial.
Guide or Tutorial.
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,
Many Thanks,
Re: Guide or Tutorial.
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...
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...
Re: Guide or Tutorial.
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
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
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: Guide or Tutorial.
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 ...
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
Re: Guide or Tutorial.
Hi Hermann,
Al
Could LCB widgets receive mouse messages? (mouseUp, etc...)
Al
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: Guide or Tutorial.
Hi Al.
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
Yes, all kinds. But you can not (yet) ask for modifier keys in the handlers.Al wrote:Could LCB widgets receive mouse messages? (mouseUp, etc...)
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
Re: Guide or Tutorial.
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
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