Hi,
does anyone know if Livecode Ltd. is closed for holiday or so?
I am just wondering, my Pro Support request is not answered since Friday and no
one can be reached by phone.
Regards,
Matthias
___
use-livecode mailing list
Hi.
“Send” and “Dispatch” do much the same thing, but they do differ in how they
interact with the message patch. They also each include their own personal
gadgetry that comes in handy in different scenarios. Read about both in the
dictionary, and do some experimentation with both.
Craig
>
Hi all,
I've been thinking about the command 'dispatch'. Is there any
advantage/disadvantage in using it over just calling your handler?
Thanks
Sean
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe,
Send allows you to send in time. However the command or function must exist or
you will throw an error. Dispatch cannot use send in time, but if a handler
does not exist in the message path of the object you dispatch to, no error will
be thrown.
This can come in handy. Let's say you have
One correction. If a value is returned by the handler that was called, the
result will be that value.
Bob S
> On Aug 3, 2022, at 08:53 , Mark Wieder via use-livecode
> wrote:
>
> One, if I'm calling a handler in a different object that is outside the
> normal message path then I'll
David Epstein wrote:
> Control “A” has many custom properties that are set by a variety
> of other controls. If Control “A” has a "setProp property1”
> handler, it can react when property1 gets set. But is there a
> way to give Control “A” a general handler that will be triggered
> whenever
That should read, "Dispatch cannot use 'in time'"
> On Aug 3, 2022, at 08:23 , Bob Sneidar via use-livecode
> wrote:
>
> Dispatch cannot use send in time
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to
We are open. Yesterday was a bank holiday in Scotland yes. We don't work at
weekends. I have a fair bit to catch up on and I'm not at my usual desk owing
to some family issues hence cannot answer the phone. I see your ticket and it
is going to get a response very shortly... I am nearing it in
On 8/3/22 06:36, Sean Cole via use-livecode wrote:
Hi all,
I've been thinking about the command 'dispatch'. Is there any
advantage/disadvantage in using it over just calling your handler?
If you can invoke a command/function directly then for the most part
there's no real advantage in using
All my prayers.
Bob S
> On Aug 3, 2022, at 08:33 , Heather Laine via use-livecode
> wrote:
>
> *Monday was a bank holiday. I see that today is Wednesday so my comment that
> yesterday was a bank holiday was erroneous. It was Tuesday. As previously
> mentioned, I am working around some
I'm having the same epiphany as Paul did below. The cornucopia of
flexibility(and gotchas) that LC's message path model provides using:
1) Standard issue calling of commands and functions.
2) Engine messages
3) Send (optionally in time)
4) Dispatch
5) Wait in time with/without messages
6) exit to
*Monday was a bank holiday. I see that today is Wednesday so my comment that
yesterday was a bank holiday was erroneous. It was Tuesday. As previously
mentioned, I am working around some family issues and there is a fair bit of
support to catch up on.
Best Regards,
Heather
Heather Laine
On 8/3/22 09:14, Bob Sneidar wrote:
One correction. If a value is returned by the handler that was called, the
result will be that value.
Yeah - good catch. I meant to say the "it" value is three-state, not the
"result".
dispatch someMessage
if it is not "unhandled" then...
or
if it is
If I understand you then no. The only thing I would suggest is to use dispatch
to trigger the "general handler" in all of your virtual properties (custom
property is not the right phrase when referring to getProp/setProp).
Bob S
> On Aug 3, 2022, at 11:13 , David Epstein via use-livecode
>
Sean Cole write:
> I was particularly asking if there was any 'advantage/disadvantage'
> in using
>
> dispatch myHandler with myVar
>
> over just using
>
> myHandler
In coding as in life, when in doubt leave it out.
If something isn't needed it's usually simplest to not go out of your
way
Hello Heather,
thanks for your reply. That explains it.
All the best for you family issues.
Regards,
Matthias
> Am 03.08.2022 um 17:33 schrieb Heather Laine via use-livecode
> :
>
> *Monday was a bank holiday. I see that today is Wednesday so my comment that
> yesterday was a bank holiday
+1
Ralph DiMola
IT Director
Evergreen Information Services
-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Bob Sneidar via use-livecode
Sent: Wednesday, August 03, 2022 11:43 AM
To: How to use LiveCode
Cc: Bob Sneidar
Subject: Re: Is
Control “A” has many custom properties that are set by a variety of other
controls. If Control “A” has a "setProp property1” handler, it can react when
property1 gets set. But is there a way to give Control “A” a general handler
that will be triggered whenever any of its custom properties is
Thanks Craig,
I was particularly asking if there was any 'advantage/disadvantage' in using
dispatch myHandler with myVar
over just using
myHandler
The dictionary defines its advantages for use with behaviours and that it
returns in the 'it' variable if the message was handled or not - useful
Awesome Bob,
Thanks for the info. That is really helpful. I often use 'try' to catch
incidents where things trip over, but this might just be more useful and
perform slightly better going forward.
Are there any other tips for its use?
Sean
On Wed, 3 Aug 2022 at 16:23, Bob Sneidar via
Using LC 10 dp2, I am trying to script the creation of a chart widget.
My command “create widget myName as chart in group myMain” creates only a small
gray box.
The LC command “New Widget/Chart” creates a line chart, ready to be modified.
What is the LC command doing that I am not?
Or:
I have here only DP4 to test.
Don't you have to use com.livecode.widget.chart as widgetkind?
With
create widget "myChart" as "com.livecode.widget.chart"
set the width of last widget to 250
set the height of last widget to 250
i was able to create a chart.
Regards,
Matthias
> Am
22 matches
Mail list logo