Search found 87 matches
- Tue Jun 28, 2016 11:08 am
- Forum: LiveCode Builder
- Topic: array syntax in LCB
- Replies: 9
- Views: 9513
Re: array syntax in LCB
Thank you Peter. I rejigged my code based on your explanation and of course it runs perfectly :oops: I'm ok with arrays in LCS but have found the transition to using nested arrays in LCB challenging. For example in LCS I can simply say: put 24 into MyNewArray["set1"]["left"] and it works (even when ...
- Sun Jun 26, 2016 6:52 am
- Forum: LiveCode Builder
- Topic: array syntax in LCB
- Replies: 9
- Views: 9513
Re: array syntax in LCB
Thanks for the encouragement. As it turns out I'm not quite there yet but I got busy with other things. Your message has reminded me to enquire further. I'm not sure if I'm still failing to properly grasp the syntax, or if I've run into some sort of bug. ONE Taking code snippet: 1. variable tBoundin...
- Tue May 31, 2016 10:01 am
- Forum: LiveCode Builder
- Topic: array syntax in LCB
- Replies: 9
- Views: 9513
Re: array syntax in LCB
Yes I did read what was in the LCB Language Reference, in a section called "Array Expressions." It shows the syntax in this way: ArrayExpression : '{' [ <Contents: ArrayDatumList> ] '}' ArrayDatumList : <Head: ArrayDatum> [ ',' <Tail: ArrayDatumList> ] ArrayDatum : <Key: Expression> ':' <Value: Expr...
- Tue May 31, 2016 9:28 am
- Forum: LiveCode Builder
- Topic: array syntax in LCB
- Replies: 9
- Views: 9513
Re: array syntax in LCB
Fair question and the dictionary provides good descriptions and code examples of the operators, statements etc within the com.livecode.array LCB library. However it doesn't specifically talk about nested arrays, and all of the syntax examples are similar to how I am used to using arrays within LCS -...
- Tue May 31, 2016 6:38 am
- Forum: LiveCode Builder
- Topic: array syntax in LCB
- Replies: 9
- Views: 9513
array syntax in LCB
Sorry for basic questions but struggling a bit to understand array syntax. Q 1. Am I right in understanding that array keys need to be strings - i.e. tArray["key1"] is ok ... but tArray[1] is not? Q 2. Are nested arrays possible? This line works fine: put 7 into tArray["key1"] but this line throws a...
- Mon May 09, 2016 1:11 am
- Forum: LiveCode Builder
- Topic: defining min/max and step when using com.livecode.pi.number
- Replies: 2
- Views: 3941
Re: defining min/max and step when using com.livecode.pi.num
Ah ... so easy and elegant Many thanks prompt clarification!
- Fri May 06, 2016 10:36 pm
- Forum: LiveCode Builder
- Topic: defining min/max and step when using com.livecode.pi.number
- Replies: 2
- Views: 3941
defining min/max and step when using com.livecode.pi.number
The documentation says that, when defining a numerical property for a widget, we should use the com.livecode.pi.number editor in the LCB script of the widget being created. This editor is described as, "com.livecode.pi.number: a single-line field, with a slider if the property has an associated min/...
- Tue May 03, 2016 1:47 am
- Forum: LiveCode Builder
- Topic: Getting properties and active handlers of a widget
- Replies: 3
- Views: 4230
Getting properties and active handlers of a widget
I can "get the kind of widget 1" which helpfully provides the necessary widget identifier (e.g. "com.livecode.widget.colorswatch"). For other object types I can "get the properties" - but seemingly not for widgets. Is there a command that allows me to easily access a widget's properties? Also, is th...
- Sat Apr 09, 2016 12:45 am
- Forum: LiveCode Builder
- Topic: How to install the widget package (.lce)
- Replies: 3
- Views: 3973
Re: How to install the widget package (.lce)
OK so now you have piqued my interest!
What is purpose of .lce file format ... and does this add capabilities beyond what .lcb allows?
Cheers
What is purpose of .lce file format ... and does this add capabilities beyond what .lcb allows?
Cheers
- Thu Mar 24, 2016 3:30 am
- Forum: LiveCode Builder
- Topic: Starting drag operation with a widget
- Replies: 11
- Views: 7880
Re: Starting drag operation with a widget
This seems to relate also to bug http://quality.livecode.com/show_bug.cgi?id=16930 reported in mid Feb. Glad to see quick fix thanks.
- Fri Mar 04, 2016 9:50 am
- Forum: Talking LiveCode
- Topic: Saving script only stacks during development
- Replies: 0
- Views: 1254
Saving script only stacks during development
Many thanks Mark for most helpful blog on script only stacks, and highlighting that they are in fact simply "text only" files (albeit with the .livecode file extension). I would like to understand how such stacks should be saved during development of an app so as to benefit from the version control ...
- Fri Feb 12, 2016 12:36 pm
- Forum: LiveCode Builder
- Topic: syntax of arguments passing from LCB to LCS
- Replies: 4
- Views: 4904
Re: syntax of arguments passing from LCB to LCS
Very cool tks Trevor
- Fri Feb 12, 2016 12:27 pm
- Forum: LiveCode Builder
- Topic: syntax of arguments passing from LCB to LCS
- Replies: 4
- Views: 4904
syntax of arguments passing from LCB to LCS
I would like my widget to detect mouse moves so that I can drag it around based on the current mouse position. I'm tying myself in knots with the syntax. The following seems close but still not working exactly right. I think it has to do with the way I am constructing the arguments in square bracket...
- Mon Oct 26, 2015 2:50 am
- Forum: LiveCode Builder
- Topic: com.livecode.widget.pushbutton mouse events not working
- Replies: 2
- Views: 3118
Re: com.livecode.widget.pushbutton mouse events not working
Thanks Bernd and you are of course quite right now that I look more carefully ... this is intended as a mobile control
A 'desktop' push button that supported all mouse events would nonetheless be a welcome further addition to the "core set" of widgets for interface design.
A 'desktop' push button that supported all mouse events would nonetheless be a welcome further addition to the "core set" of widgets for interface design.
- Sat Oct 24, 2015 10:54 am
- Forum: LiveCode Builder
- Topic: com.livecode.widget.pushbutton mouse events not working
- Replies: 2
- Views: 3118
com.livecode.widget.pushbutton mouse events not working
The pushbutton widget is a welcome addition to LC 8. According to the documentation this widget dispatches mouse events to its script object, but the only one that seems to work in DP 7 is mouseup. Others including mousedown,mouse move, dragstart, mouseenter etc don't generate any signs of life. Cur...