Ah, I see what you mean. If I stumble onto something that works reliably
i'll post, but its not likely.
On Sun, Aug 9, 2015 at 12:45 AM, Scott Rossi wrote:
> Yes, dragging can work by itself.
>
> But create a new untitled stack in the IDE. Click between between the new
> stack and the windowSh
Yes, dragging can work by itself.
But create a new untitled stack in the IDE. Click between between the new
stack and the windowShaped stack and drag them around. Over here, when
clicking on the windowShaped stack after the standard stack, there is a
delay while the window becomes active, and th
Ok. Better way. Use a virtual getprop in a library stack
getprop owningstack
return (the name of this stack)
end owningstack
Then if you have the long id of an object you can do this..
get the owningstack of myLongId
and "it" will contain the stackname. (should also work inserted into
front,
Just tried it here, this old script seems to work fine for me 7.0.6..
http://lessons.runrev.com/m/4071/l/6867-how-to-make-a-stack-with-a-window-shape
<-- source
Sorry if you've already tried this method.
*local* sgDragging, sgLeftOffset, sgTopOffset
*on* mouseDown
*put* item 1 of the mouseL
This may not do things in the required way, but.. If you have a library
stack with a function or command that just grabs the name of "this stack"
then you can dispatch or send the request to the object and POOF it'll tell
you what stack its on, no parsing necessary.
Just tried it here, and it wor
Hi All:
Is anyone still making custom-shaped stacks out there that use scripts to
manage window dragging?
I've noticed for some time now that custom window drag routines which used
to work in all past versions of LiveCode now seem to be ineffective in
LC7. For example, if you have a couple of st
Hi.
Are you asking if there is a way to make the scroll of a field track the
mouseLoc? If so, then you are right to use the "mouseMove" message, and scale
the y-value of its included parameter to the vScroll of the field.
Or am I missing it?
Craig Newman
-Original Message-
From:
On Aug 8, 2015, at 5:44 PM, Richmond wrote:
> executing at 12:43:43 AM
> TypeFunction: error in function handler
> ObjectBrigham
> Lineput wordOffsets("were", pText, true) into offList
> HintwordOffsets
Probably you didn't include the wordOffsets() handler from my post ear
On Aug 8, 2015, at 6:41 PM, Richard Gaskin wrote:
> Richmond wrote:
>
>> function findWere pText
>> -- returns a comma-delim list of all the line offsets matching "were *ed"
>> --or "were" && .
>> put fld "WERBS" into pretList
>> put wordOffsets("were", pText, true) into offList
>
>
I believe curl and flip are the only visual effects that are exclusive to
mobile (iOS only?), while the others should work. I know for a fact that
push and wipe work fine, as I use these in mobile stacks, combined with
limiting transitions to defined rects:
lock screen for visual effect in rect
Can you share that function?
i could guess what it is... but why re-invent the wheel?
Ralph DiMola wrote:
I have a function "TheEngineFolder" that returns the engine folder on mobile
and the location of the included assets when in the IDE. This allows testing using the
same code.
__
The only visual effect I really think works in most scenarios is
dissolve at least for my use case... having things flip, or move wipe
down etc... all very distracting.
but the Dictionary indicates that only scroll and reveal work on iOS and
Android.
But I have seen apps in iOS that have ma
David Bovill wrote:
> Yes - you're right. The long name is the only case and like you I
> only use long ids in the use cases I have. Except when I store
> references when I use the ruggedID handler of the IDE - that should
> be a native reference I think?
It would be nice to have an engine versi
Yes - you're right. The long name is the only case and like you I only use
long ids in the use cases I have. Except when I store references when I use
the ruggedID handler of the IDE - that should be a native reference I think?
On Sunday, August 9, 2015, Richard Gaskin
wrote:
> David Bovill wrot
David Bovill wrote:
> Richard Gaskin wrote:
> >> function ObjectStack pObj
> >>return char (offset(" of stack ", pObj)+4) to -1 of pObj
> >> end ObjectStack
>
> The test case would be "this is a stack of rubish" as a substack -
> that would break your code?
It would have to be "this is a of
I've a web site that I want to make smaller in Livecode. In Chrome or
Firefox I can shrink the browser view using Zoom In / Zoom Out. In Livecode
we have "revBrowserMakeTextSmaller" - but this only shrinks the text.
Any CSS or other tricks to zoom / shrink an entire web site? I guess not -
just ho
The test case would be "this is a stack of rubish" as a substack - that
would break your code?
On 9 August 2015 at 00:59, Richard Gaskin
wrote:
> Thierry Douez wrote:
>
> >> Yep - and being a lazy person this is how I get the stack reference:
> >>
> >> function ObjectStack pObj
> >>return ch
Thierry Douez wrote:
>> Yep - and being a lazy person this is how I get the stack reference:
>>
>> function ObjectStack pObj
>>return char (offset(" of stack ", pObj)+4) to -1 of pObj
>> end ObjectStack
>
> Not always beneficial to be lazy :)
>
> I tried your code with the long ID I gave prev
On 8/8/2015 6:20 PM, David Bovill wrote:
the new offset feature (which I think is the
feature I remember).
The offset feature hasn't changed, but you may be thinking of the
itemDelimiter, which in LC 7 can be more than one character.
--
Jacqueline Landman Gay | jac...@hyperactive
I think I'd agree that a conditional clause should be equired (could it
be any of 'if', 'unless', 'whether', ...)?
Otherwise, you'd be finding false positives like:
I gave two shillings to my brother and last night they _were returned_
to me.
-- Alex.
On 08/08/2015 20:56, Paul Looney wrote:
I progressed with the Meetup page. I settled on:
NYC High Level App Development Tools Meetup
that covers desktop and mobile. I didn’t go for rapid development because apps
take a long time to develop, even if the coding part is made easier. It’s
generally not rapid.
I can’t see how to edit my
Colin Holgate wrote:
> Can you say something about the costs of running a Meetup group?
It's not cheap but affordable, and worth every penny. Meetup.com has
become the go-to place folks use the most when looking for events like
yours.
In our Linux group we took up a collection among members
> Yep - and being a lazy person this is how I get the stack reference:
>
> function ObjectStack pObj
>return char (offset(" of stack ", pObj)+4) to -1 of pObj
> end ObjectStack
>
Not always beneficial to be lazy :)
I tried your code with the long ID I gave previously
without success.
Regards
Wow - lot's of cool examples. Richards is one of the shortest - but breaks
theoretically if a stack is named weirdly. Thierry gets the nerdy award,
and mark for digging up the new offset feature (which I think is the
feature I remember).
By the way one of the most puzzling aspects of software conv
To do it with this method, the traversal of the field needs to be off.
(though this can probably be worked around)
Put this script into the field.
local sMouseLoc
on mouseDown
put the mouseloc into sMouseLoc
setScroll
end mouseDown
on setScroll
if the mouse is down then
lock scree
The specialFolderPath() has many more options. I later versions (post 5.5?)
there are 2 short cuts also. These folders are common for both mobile
platforms. IOS has a few more.
specialFolderPath("engine") = the engine folder.
specialFolderPath("documents") = the documents folder.
specialFolderPath
To scroll a field on mobile I'm going to try this:
on createQuoteScroller
local tScrollerRect,tContentRect,sScrollerID
if environment() is not "mobile" then exit createQuoteScroller
mobileControlCreate "scroller", "quoteScroller"
put the result into sScrollerID
put the rect of fld
Thanks for the “Swift” reply!
Can you say something about the costs of running a Meetup group?
I do think the presentations would range from Swift, Javascript, and
TypeScript, at the low end, and not a line of code typed all night
presentations at the high end. The target audience would be both
Colin Holgate wrote:
> I attend a programming user group that has gotten more and more quiet
> over the years. Sometimes nobody shows up! We’ve been wondering
> whether to change it to be a Meetup group instead
Yes and double yes! Once our local Linux group opened a Meetup page
attendance has s
I attend a programming user group that has gotten more and more quiet over the
years. Sometimes nobody shows up! We’ve been wondering whether to change it to
be a Meetup group instead, which has the advantages of knowing how many people
will come, and some have a pre-pay $5 system, so if nobody
dunbarx wrote:
Wait just a doggone minute. The long id of a control contains the stack
reference.
Yep - and being a lazy person this is how I get the stack reference:
function ObjectStack pObj
return char (offset(" of stack ", pObj)+4) to -1 of pObj
end ObjectStack
--
Richard Gaskin
Fo
Richmond wrote:
function findWere pText
-- returns a comma-delim list of all the line offsets matching "were *ed"
--or "were" && .
put fld "WERBS" into pretList
put wordOffsets("were", pText, true) into offList
Unless the build you're using a custom build, wouldn't that be
"wo
The function Ralph alludes to is specialFolderPath().
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-liv
*** LiveCode-bijeenkomst September 2015 ***
(see below for English version)
Het is alweer bijna een jaar geleden, dat we elkaar hebben ontmoet. Het wordt
dus de hoogste tijd, dat we elkaar weer eens treffen. Ik heb daarom het plan
opgevat na de vakantie weer eens een LiveCode-bijeenkomst te org
Oddly enough this does NOT seem to be a problem with my counters.
If I reorder my verbList the stack still only finds text bits with 'found'.
Retyping the list (rather than importing it from RTF) the first
occurrence of the first verb in the list results.
There seems to be a problem with the
File in the stack are in "the engine folder" and it's sub folders. This is read
only.
You can store files in "the documents folder".
Check the docs for other folder options.
I have a function "TheEngineFolder" that returns the engine folder on mobile
and the location of the included assets wh
Complete mobile newbie here... will be coming with my begging bowl out
a lot in the days to come.
Is this good for mobile also?
function localPath
put the effective filename of this stack into tPath
set the itemdel to "/"
delete item -1 of tPath
put "/" after tPath
return tPath
on mouseUp
put fld "TEKST" into TEKST
put fld "WERBS" into WERBS
put findWere(TEKST) into linesList
repeat for each item i in linesList
put line i of TEKST & cr after relevantLines
end repeat
put char 1 to -2 of relevantLines into fld "COOKED"
end mouseUp
function findWere pText
On 09/08/15 00:26, Peter M. Brigham wrote:
On Aug 8, 2015, at 4:51 PM, Richmond wrote:
On 08/08/15 23:33, Peter M. Brigham wrote:
Missing an "of" in the two lines above:
put line textLine *of* $TEKST into line cookedLine of fld "COOKED" etc
Don't know if that's the problem.
Your scri
On Aug 8, 2015, at 4:51 PM, Richmond wrote:
> On 08/08/15 23:33, Peter M. Brigham wrote:
>
>
>> Missing an "of" in the two lines above:
>>put line textLine *of* $TEKST into line cookedLine of fld "COOKED" etc
>> Don't know if that's the problem.
>
>
>
>> Your script logic seems unnecessar
On 08/08/15 23:59, Peter M. Brigham wrote:
On Aug 8, 2015, at 4:44 PM, Richmond wrote:
On 08/08/15 23:23, Paul Looney wrote:
In your last example:
"Mr. Rushworth _was returned_”
“was returned” (singular, past tense, passive)
I'm not sure if that is a passive, or an older form of the past pe
On Aug 8, 2015, at 4:44 PM, Richmond wrote:
> On 08/08/15 23:23, Paul Looney wrote:
>> In your last example:
>>
>> "Mr. Rushworth _was returned_”
>>
>> “was returned” (singular, past tense, passive)
>
> I'm not sure if that is a passive, or an older form of the past perfect (=
> had returned)
On 08/08/15 23:33, Peter M. Brigham wrote:
Missing an "of" in the two lines above:
put line textLine *of* $TEKST into line cookedLine of fld "COOKED" etc
Don't know if that's the problem.
Your script logic seems unnecessarily complex. Since it looks as if only the
last occurrence is e
On 08/08/15 23:23, Paul Looney wrote:
In your last example:
"Mr. Rushworth _was returned_”
“was returned” (singular, past tense, passive)
I'm not sure if that is a passive, or an older form of the past perfect
(= had returned) ???
is correct (although a simple “returned” would have been mor
On 08/08/15 23:33, Peter M. Brigham wrote:
On Aug 8, 2015, at 3:41 PM, Richmond wrote:
I seem to be going wrong:
I have a fld "WERBS" containing:
found
returned
become
and my test to be analysed in a fld "TEKST":
My Dad ate cheese.
My Mum and Dad were returned home wh
On Aug 8, 2015, at 3:41 PM, Richmond wrote:
> I seem to be going wrong:
>
> I have a fld "WERBS" containing:
>
> found
> returned
> become
>
> and my test to be analysed in a fld "TEKST":
>
> My Dad ate cheese.
> My Mum and Dad were returned home when it
> bega
In your last example:
"Mr. Rushworth _was returned_”
“was returned” (singular, past tense, passive) is correct (although a simple
“returned” would have been more powerful). There is no conditional, no “if”; as
in your first example:
"to inquire if Mr. Wickham_were returned_,"
Haven’t had this
On 08/08/15 22:56, Paul Looney wrote:
Richmond,
The key here is the “if” - which creates a conditional clause - which requires the
past plural of the verb (in this case “were”). This is similar to the “wenn"
clause in German (Deutsch) and the “ut” clause in Latin.
If I were able, I’d thank you
Richmond,
The key here is the “if” - which creates a conditional clause - which requires
the past plural of the verb (in this case “were”). This is similar to the
“wenn" clause in German (Deutsch) and the “ut” clause in Latin.
If I were able, I’d thank you in person for mentioning this.
Paul Lo
I seem to be going wrong:
I have a fld "WERBS" containing:
found
returned
become
and my test to be analysed in a fld "TEKST":
My Dad ate cheese.
My Mum and Dad were returned home when it
began to rain.
He had a house in Spain.
On 08/08/15 21:18, Peter M. Brigham wrote:
On Aug 8, 2015, at 1:56 PM, Richmond wrote:
On 08/08/15 20:48, Peter M. Brigham wrote:
On Aug 8, 2015, at 12:42 PM, Richmond wrote:
Jane Austen [amongst others] uses an interesting type of grammatical
construction of this sort:
After breakfast, th
Hi Bill,
Sorry for the delay replying, I’ve been away from home for a few days.
I don’t think line 6 will give the result you are looking for, I would change
it to:
> 6. export snapshot from Group "snapshotGrp" with metadata theMetadataArray to
> image mySnapShot
i.e. Remove the “from rect” p
Here is a regex solution.
and as a bonus, in 3 variants:
on mouseUp
--button id 1003 of card id 1002 of stack "stack 2"
--of stack "/Users/t/Desktop/stack.livecode"
put fld "L1" into aLongID
put theStackOwner( aLongID) into field "L2"
put theMainStackOwne
On Aug 8, 2015, at 1:56 PM, Richmond wrote:
> On 08/08/15 20:48, Peter M. Brigham wrote:
>> On Aug 8, 2015, at 12:42 PM, Richmond wrote:
>>
>>> Jane Austen [amongst others] uses an interesting type of grammatical
>>> construction of this sort:
>>>
>>> After breakfast, the girls walked to Meryto
On 08/08/15 20:48, Peter M. Brigham wrote:
On Aug 8, 2015, at 12:42 PM, Richmond wrote:
Jane Austen [amongst others] uses an interesting type of grammatical
construction of this sort:
After breakfast, the girls walked to Meryton to inquire if Mr. Wickham
_were returned_, and to lament over hi
On Aug 8, 2015, at 1:45 PM, Peter Haworth wrote:
> I do it like this
>
> function stackOfObject pobject
>
> local tObject
>
> put pobject into tObject
> repeat
> if word 1 of tObject is "stack" then
> return tObject
> end if
I assume you meant to include a line "delete word 1 of tObject
Whoops, hit send too soon, should be:
function stackOfObject pobject
repeat
if word 1 of pobject is "stack" then
return pobject
else
put the long owner of pobject into pobject
end repeat
end stackOfObject
On Sat, Aug 8, 2015 at 10:45 AM Peter Haworth wrote:
> I
On Aug 8, 2015, at 12:42 PM, Richmond wrote:
> Jane Austen [amongst others] uses an interesting type of grammatical
> construction of this sort:
>
> After breakfast, the girls walked to Meryton to inquire if Mr. Wickham
> _were returned_, and to lament over his absence from the Netherfield ball.
I do it like this
function stackOfObject pobject
local tObject
put pobject into tObject
repeat
if word 1 of tObject is "stack" then
return tObject
end if
On Sat, Aug 8, 2015 at 10:31 AM Peter M. Brigham wrote:
> OK, Here's a revision:
>
> function ownerStack pObjLongID
>-- return
OK, Here's a revision:
function ownerStack pObjLongID
-- returns the name of the stack immediately containing pObjLongID
-- by Peter M. Brigham, pmb...@gmail.com — freeware
-- tags: control
-- requires getprop robustName
replace " of " with cr in pObjLongID
put lineoffset(cr
On 08/08/2015 07:45 AM, David Bovill wrote:
There was a recent feature added to the language that would help - maybe it
was something to do with the owner
I LC7 you can now set whole words as delimiters.
So (off the top of my head)
set the itemDelimiter to "stack"
get item -1 of the long i
Jane Austen [amongst others] uses an interesting type of grammatical
construction of this sort:
After breakfast, the girls walked to Meryton to inquire if Mr. Wickham
_were returned_, and to lament over his absence from the Netherfield ball.
Pride and Prejudice.
I would like to analyse a milli
There was a recent feature added to the language that would help - maybe it
was something to do with the owner
I have a similarly convoluted function and getprop - one of the issues is
that if you want the long name of the stack the control is part of - this
could be a mainstack or a substack
Here's a quick solution:
function ownerStack pObjLongID
replace " of " with numtochar(8) in pObjLongID
set the itemdel to numtochar(8)
return item -1 of pObjLongID
end ownerStack
A more general solution is what I use in my library. The getItem() function is
so useful that I use it *ever
Hi Mike,
Worked great!! Thank you very much. Exactly what I'm trying to do.
Tim
On 15/08/08 22:05, Mike Bonner wrote:
You need to set up a script to catch the data, and you need to send the
data using a key=data type format.
So for example if you're sending a book chapter to your server, and
Wait just a doggone minute. The long id of a control contains the stack
reference.
Craig
-Original Message-
From: David Bovill
To: How to use LiveCode
Sent: Sat, Aug 8, 2015 8:24 am
Subject: Extracting a reference to a stack
Given the long id of a control - how do I extract the re
Interesting. I wonder if there is a property that gives this directly.
But I suppose you can always find the owner of the control, and if that is a
group (or a series of groups, continue until you find an owner with the word
"stack" in it.
Craig Newman
-Original Message-
From: Davi
You need to set up a script to catch the data, and you need to send the
data using a key=data type format.
So for example if you're sending a book chapter to your server, and the
text of the chapter is in variable tChapter
post ("chapter1=" & urlencode(tChapter)) to URL "
http://myUrl.com/myscrip
Given the long id of a control - how do I extract the reference to the
stack ti belongs to? I have a function that i have used since the dawn of
time for this - but I recall seeing a new chunk / target / reference
feature of Livecode in the last year that makes this easier. Did I imagine
it?
__
Hi,
Messing with a LC script in a web page, writing a variable to a text
file on my on-rev server account.
The dictionary says the postmyData
toURL"http://www.example.net/indications.cgi"; should work, but it
doesn't. I get an 404 error.
I am trying to save a variable's text contents by us
Recently my younger son liberated my "Revolution 1.1.1" User Guide from
the attic of our house in Scotland when he was up there.
I would be extremely grateful if anyone could point me to a digital
version of that.
Richmond.
___
use-livecode mailing
71 matches
Mail list logo