iCloud with current version of LC and iOS7

2014-07-10 Thread Matthias Rebbe | M-R-D
Hi,

is anyone using iCloud in an LC app for iOS 7?

I need to add iCloud support to an iOS app.

Regards,

Matthias






___
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-livecode


Re: iCloud with current version of LC and iOS7

2014-07-10 Thread Guglielmo Braguglia

Hi Matthias,

I remember only this announcement : 
http://runtime-revolution.278305.n4.nabble.com/ANN-Livecode-iCloud-iOS-external-td4653404.html 
but ... the Maarten Koopmans web site ... does not seem to exist anymore :(


Guglielmo


Matthias Rebbe | M-R-D wrote:

Hi,

is anyone using iCloud in an LC app for iOS 7?

I need to add iCloud support to an iOS app.

Regards,

Matthias

___
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-livecode


Re: [on-rev] libURL and https

2014-07-10 Thread Simon Smith
They could be blocking something their side - but I also think they dont
run the latest version of LC Server. Probably best to contact their support
staff.




On Thu, Jul 10, 2014 at 2:16 AM, Scott Morrow 
wrote:

> Thanks Simon,
> Unfortunately, that is what I’m doing now except that it fails from my
> on-rev account when I use “https”… works if I use “http”
> —
> Scott Morrow
>
> On Jul 9, 2014, at 1:46 PM, Simon Smith  wrote:
>
> > Hi Scott
> >
> > I have not tried sending messages yet through Mandrill - but this works
> for
> > retrieving my account details:
> >
> >  > put "{" & QUOTE & "key" & QUOTE & ":" & QUOTE & "my mandrill key" &
> QUOTE &
> > "}" into myJSON  -- { "key": "my mandrill key" }
> > post myJSON to URL "https://mandrillapp.com/api/1.0/users/info.json";
> > put it
> > ?>
> >
> > Kind Regards
> > Simon
> >
> > On Wed, Jul 9, 2014 at 8:49 PM, Mark Wieder 
> wrote:
> >
> >> John Craig  writes:
> >>
> >>>
> >>> Hi, Scott.  I couldn't post to an https URL with on-rev the last time I
> >>> tried, but the workaround was to use wget via shell.
> >>
> >> I do something similar, shelling out to httpie, especially when I need
> to
> >> get around the limitations of libURL.
> >>
> >> --
> >> Mark Wieder
> >> ahsoftw...@gmail.com
> >>
> >>
> >>
> >> ___
> >> 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-livecode
> >>
> > ___
> > 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-livecode
>
>
> ___
> 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-livecode
>



-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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-livecode

Re: iCloud with current version of LC and iOS7

2014-07-10 Thread Matthias Rebbe | M-R-D


Am 10.07.2014 um 12:22 schrieb Guglielmo Braguglia :

> Hi Matthias,
> 
> I remember only this announcement : 
> http://runtime-revolution.278305.n4.nabble.com/ANN-Livecode-iCloud-iOS-external-td4653404.html
>  but ... the Maarten Koopmans web site ... does not seem to exist anymore :(
> 
> Guglielmo
> 

Yes, i know his external. I bought it right after he published it. Until LC 
5.53 it worked. But with newer LC and iOS SDKs it doesn´t.
I´ve already sent him 2 emails, but did not get any answer yet. That´s why i am 
asking here for an other solution.

But it seems,  Marten´s external was the only possible solution. 

Thanks anyway.

Regards,

Matthias


> 
> Matthias Rebbe | M-R-D wrote:
>> Hi,
>> 
>> is anyone using iCloud in an LC app for iOS 7?
>> 
>> I need to add iCloud support to an iOS app.
>> 
>> Regards,
>> 
>> Matthias
> ___
> 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-livecode





___
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-livecode


Re: Problem with filter and regex

2014-07-10 Thread Magicgate Software - Skip Kimpel
I think I have found the cause of the issue, now I need to figure out how
to solve it.

The regex pattern I am looking for appears in other lines because there is
a description field that lists "related parts."  The one consistency I have
is that the pattern I am comparing to should be looking only at column 1 of
tdg2Text

I know this is not accurate but is there a way to say something like this:
filter lines of ITEM1 of tdg2Text with regex pattern tRegexp into tTemp

Trying to limit the filter based on the first item in that line VS the
entire line.

Ideas?

Thank you,
SKIP



On Wed, Jul 9, 2014 at 2:02 PM, Bernard Devlin  wrote:

> I haven't use the filter by regex pattern, but perhaps try putting the "End
> of Line" marker ($) at the end of your regex.  You may need the "Start of
> Line" marker too.
>
> ^.*cat.*mat$
>
> ^ is the Start of Line marker.
>
> Bernard
>
>
> On Wed, Jul 9, 2014 at 4:28 PM, Magicgate Software - Skip Kimpel <
> s...@magicgate.com> wrote:
>
> > Hello LC'ers
> >
> > I am comparing two lists using the following:
> >filter lines of tdg2Text with regex pattern tRegexp into tTemp
> >
> > The problem I have is that this is pulling up multiple lines in tdg2Text
> > when if fact I need to filter out a specific line.  tRegExp should MATCH
> > (exactly) item 1 of tdg2Text.
> >
> > Make sense?
> >
> > SKIP
> > ___
> > 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-livecode
> >
> ___
> 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-livecode
>
___
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-livecode


Re: Problem with filter and regex

2014-07-10 Thread John Craig
Which item delimiter are you using?  For example, if it's a TAB, maybe 
you can specify a pattern ending with a tab, but disallowing any further 
tabs..



On 10/07/2014 14:42, Magicgate Software - Skip Kimpel wrote:

I think I have found the cause of the issue, now I need to figure out how
to solve it.

The regex pattern I am looking for appears in other lines because there is
a description field that lists "related parts."  The one consistency I have
is that the pattern I am comparing to should be looking only at column 1 of
tdg2Text

I know this is not accurate but is there a way to say something like this:
filter lines of ITEM1 of tdg2Text with regex pattern tRegexp into tTemp

Trying to limit the filter based on the first item in that line VS the
entire line.

Ideas?

Thank you,
SKIP



On Wed, Jul 9, 2014 at 2:02 PM, Bernard Devlin  wrote:


I haven't use the filter by regex pattern, but perhaps try putting the "End
of Line" marker ($) at the end of your regex.  You may need the "Start of
Line" marker too.

^.*cat.*mat$

^ is the Start of Line marker.

Bernard


On Wed, Jul 9, 2014 at 4:28 PM, Magicgate Software - Skip Kimpel <
s...@magicgate.com> wrote:


Hello LC'ers

I am comparing two lists using the following:
filter lines of tdg2Text with regex pattern tRegexp into tTemp

The problem I have is that this is pulling up multiple lines in tdg2Text
when if fact I need to filter out a specific line.  tRegExp should MATCH
(exactly) item 1 of tdg2Text.

Make sense?

SKIP
___
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-livecode


___
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-livecode


___
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-livecode




___
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-livecode


Re: Problem with filter and regex

2014-07-10 Thread Magicgate Software - Skip Kimpel
I am reading the data from a datagrid into a variable before applying the
filter so it would be a TAB delimiter.


On Thu, Jul 10, 2014 at 9:52 AM, John Craig  wrote:

> Which item delimiter are you using?  For example, if it's a TAB, maybe you
> can specify a pattern ending with a tab, but disallowing any further tabs..
>
>
>
> On 10/07/2014 14:42, Magicgate Software - Skip Kimpel wrote:
>
>> I think I have found the cause of the issue, now I need to figure out how
>> to solve it.
>>
>> The regex pattern I am looking for appears in other lines because there is
>> a description field that lists "related parts."  The one consistency I
>> have
>> is that the pattern I am comparing to should be looking only at column 1
>> of
>> tdg2Text
>>
>> I know this is not accurate but is there a way to say something like this:
>> filter lines of ITEM1 of tdg2Text with regex pattern tRegexp into tTemp
>>
>> Trying to limit the filter based on the first item in that line VS the
>> entire line.
>>
>> Ideas?
>>
>> Thank you,
>> SKIP
>>
>>
>>
>> On Wed, Jul 9, 2014 at 2:02 PM, Bernard Devlin 
>> wrote:
>>
>>  I haven't use the filter by regex pattern, but perhaps try putting the
>>> "End
>>> of Line" marker ($) at the end of your regex.  You may need the "Start of
>>> Line" marker too.
>>>
>>> ^.*cat.*mat$
>>>
>>> ^ is the Start of Line marker.
>>>
>>> Bernard
>>>
>>>
>>> On Wed, Jul 9, 2014 at 4:28 PM, Magicgate Software - Skip Kimpel <
>>> s...@magicgate.com> wrote:
>>>
>>>  Hello LC'ers

 I am comparing two lists using the following:
 filter lines of tdg2Text with regex pattern tRegexp into tTemp

 The problem I have is that this is pulling up multiple lines in tdg2Text
 when if fact I need to filter out a specific line.  tRegExp should MATCH
 (exactly) item 1 of tdg2Text.

 Make sense?

 SKIP
 ___
 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-livecode

  ___
>>> 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-livecode
>>>
>>>  ___
>> 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-livecode
>>
>>
>
> ___
> 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-livecode
>
___
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-livecode


Re: Problem with filter and regex

2014-07-10 Thread Magicgate Software - Skip Kimpel
I additionally noticed that if my search term is b108 it also pulls over
b108-option1, b108-option2, etc.

I need it to only filter b108 and not those other items.


On Thu, Jul 10, 2014 at 10:05 AM, Magicgate Software - Skip Kimpel <
s...@magicgate.com> wrote:

> I am reading the data from a datagrid into a variable before applying the
> filter so it would be a TAB delimiter.
>
>
> On Thu, Jul 10, 2014 at 9:52 AM, John Craig  wrote:
>
>> Which item delimiter are you using?  For example, if it's a TAB, maybe
>> you can specify a pattern ending with a tab, but disallowing any further
>> tabs..
>>
>>
>>
>> On 10/07/2014 14:42, Magicgate Software - Skip Kimpel wrote:
>>
>>> I think I have found the cause of the issue, now I need to figure out how
>>> to solve it.
>>>
>>> The regex pattern I am looking for appears in other lines because there
>>> is
>>> a description field that lists "related parts."  The one consistency I
>>> have
>>> is that the pattern I am comparing to should be looking only at column 1
>>> of
>>> tdg2Text
>>>
>>> I know this is not accurate but is there a way to say something like
>>> this:
>>> filter lines of ITEM1 of tdg2Text with regex pattern tRegexp into tTemp
>>>
>>> Trying to limit the filter based on the first item in that line VS the
>>> entire line.
>>>
>>> Ideas?
>>>
>>> Thank you,
>>> SKIP
>>>
>>>
>>>
>>> On Wed, Jul 9, 2014 at 2:02 PM, Bernard Devlin 
>>> wrote:
>>>
>>>  I haven't use the filter by regex pattern, but perhaps try putting the
 "End
 of Line" marker ($) at the end of your regex.  You may need the "Start
 of
 Line" marker too.

 ^.*cat.*mat$

 ^ is the Start of Line marker.

 Bernard


 On Wed, Jul 9, 2014 at 4:28 PM, Magicgate Software - Skip Kimpel <
 s...@magicgate.com> wrote:

  Hello LC'ers
>
> I am comparing two lists using the following:
> filter lines of tdg2Text with regex pattern tRegexp into tTemp
>
> The problem I have is that this is pulling up multiple lines in
> tdg2Text
> when if fact I need to filter out a specific line.  tRegExp should
> MATCH
> (exactly) item 1 of tdg2Text.
>
> Make sense?
>
> SKIP
> ___
> 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-livecode
>
>  ___
 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-livecode

  ___
>>> 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-livecode
>>>
>>>
>>
>> ___
>> 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-livecode
>>
>
>
___
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-livecode


Re: Problem with filter and regex

2014-07-10 Thread Charles E Buchwald
So... ^yourregexpattern\t
^ is the start of line marker
\t is the (usual) regex for a tab character
- Charles

On 10 Jul 2014, at 9:05 AM, Magicgate Software - Skip Kimpel 
 wrote:

> I am reading the data from a datagrid into a variable before applying the
> filter so it would be a TAB delimiter.
> 
> 
> On Thu, Jul 10, 2014 at 9:52 AM, John Craig  wrote:
> 
>> Which item delimiter are you using?  For example, if it's a TAB, maybe you
>> can specify a pattern ending with a tab, but disallowing any further tabs..
>> 
>> 
>> 
>> On 10/07/2014 14:42, Magicgate Software - Skip Kimpel wrote:
>> 
>>> I think I have found the cause of the issue, now I need to figure out how
>>> to solve it.
>>> 
>>> The regex pattern I am looking for appears in other lines because there is
>>> a description field that lists "related parts."  The one consistency I
>>> have
>>> is that the pattern I am comparing to should be looking only at column 1
>>> of
>>> tdg2Text
>>> 
>>> I know this is not accurate but is there a way to say something like this:
>>> filter lines of ITEM1 of tdg2Text with regex pattern tRegexp into tTemp
>>> 
>>> Trying to limit the filter based on the first item in that line VS the
>>> entire line.
>>> 
>>> Ideas?
>>> 
>>> Thank you,
>>> SKIP
>>> 
>>> 
>>> 
>>> On Wed, Jul 9, 2014 at 2:02 PM, Bernard Devlin 
>>> wrote:
>>> 
>>> I haven't use the filter by regex pattern, but perhaps try putting the
 "End
 of Line" marker ($) at the end of your regex.  You may need the "Start of
 Line" marker too.
 
 ^.*cat.*mat$
 
 ^ is the Start of Line marker.
 
 Bernard
 
 
 On Wed, Jul 9, 2014 at 4:28 PM, Magicgate Software - Skip Kimpel <
 s...@magicgate.com> wrote:
 
 Hello LC'ers
> 
> I am comparing two lists using the following:
>filter lines of tdg2Text with regex pattern tRegexp into tTemp
> 
> The problem I have is that this is pulling up multiple lines in tdg2Text
> when if fact I need to filter out a specific line.  tRegExp should MATCH
> (exactly) item 1 of tdg2Text.
> 
> Make sense?
> 
> SKIP
> ___
> 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-livecode
> 
> ___
 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-livecode
 
 ___
>>> 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-livecode
>>> 
>>> 
>> 
>> ___
>> 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-livecode
>> 
> ___
> 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-livecode

--
Charles E. Buchwald
CEO/Director General
Museografica Digital
http://digital.museografica.com

LC Developer Tools: http://buchwald.ca/developer-tools/

Email Notice: http://wp.me/P3aT4d-33


___
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-livecode


Re: [on-rev] libURL and https

2014-07-10 Thread Richard Gaskin

Is libURL available at all with LiveCode Server?

On the desktop it's a backscript that gets included in our standalones 
at build time.


Where is it with LiveCode Server?

--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
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-livecode


Re: Problem with filter and regex

2014-07-10 Thread Charles E Buchwald
OK, then how about this:
^[a-z]\d+
That translates as... start of line, plus 1 alphabetic character, plus one or 
more digits.
- Charles

On 10 Jul 2014, at 10:06 AM, Magicgate Software - Skip Kimpel 
 wrote:

> I additionally noticed that if my search term is b108 it also pulls over
> b108-option1, b108-option2, etc.
> 
> I need it to only filter b108 and not those other items.
> 
> 
> On Thu, Jul 10, 2014 at 10:05 AM, Magicgate Software - Skip Kimpel <
> s...@magicgate.com> wrote:
> 
>> I am reading the data from a datagrid into a variable before applying the
>> filter so it would be a TAB delimiter.
>> 
>> 
>> On Thu, Jul 10, 2014 at 9:52 AM, John Craig  wrote:
>> 
>>> Which item delimiter are you using?  For example, if it's a TAB, maybe
>>> you can specify a pattern ending with a tab, but disallowing any further
>>> tabs..
>>> 
>>> 
>>> 
>>> On 10/07/2014 14:42, Magicgate Software - Skip Kimpel wrote:
>>> 
 I think I have found the cause of the issue, now I need to figure out how
 to solve it.
 
 The regex pattern I am looking for appears in other lines because there
 is
 a description field that lists "related parts."  The one consistency I
 have
 is that the pattern I am comparing to should be looking only at column 1
 of
 tdg2Text
 
 I know this is not accurate but is there a way to say something like
 this:
 filter lines of ITEM1 of tdg2Text with regex pattern tRegexp into tTemp
 
 Trying to limit the filter based on the first item in that line VS the
 entire line.
 
 Ideas?
 
 Thank you,
 SKIP
 
 
 
 On Wed, Jul 9, 2014 at 2:02 PM, Bernard Devlin 
 wrote:
 
 I haven't use the filter by regex pattern, but perhaps try putting the
> "End
> of Line" marker ($) at the end of your regex.  You may need the "Start
> of
> Line" marker too.
> 
> ^.*cat.*mat$
> 
> ^ is the Start of Line marker.
> 
> Bernard
> 
> 
> On Wed, Jul 9, 2014 at 4:28 PM, Magicgate Software - Skip Kimpel <
> s...@magicgate.com> wrote:
> 
> Hello LC'ers
>> 
>> I am comparing two lists using the following:
>>filter lines of tdg2Text with regex pattern tRegexp into tTemp
>> 
>> The problem I have is that this is pulling up multiple lines in
>> tdg2Text
>> when if fact I need to filter out a specific line.  tRegExp should
>> MATCH
>> (exactly) item 1 of tdg2Text.
>> 
>> Make sense?
>> 
>> SKIP

--
Charles E. Buchwald
CEO/Director General
Museografica Digital
http://digital.museografica.com

LC Developer Tools: http://buchwald.ca/developer-tools/

Email Notice: http://wp.me/P3aT4d-33


___
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-livecode


formattedWidth

2014-07-10 Thread Peter Haworth
I recently posted about how to adjust the size of different cards within a
stack and part of the solution I tried was using the formattedWidth and
formattedHeight properties (actually the effective versions of them).

I'm now seeing that the formattedWidth (and probably formattedHeight)
return very unexpected values.

The dictionary says it returns the width of a rectangle that contains all
objects in the card whose visible property is true but I'm not seeing that.

Make yourself a stack with a field on it with it's left edge in the middle
of the stack and it's right edge somewhere off the right edge of the stack.

Put a button on the card with the following code:

get the rectangle of this stack
put item 1 of it + the formattedWidth of this card into item 3 of it
set the rectangle of this stack to it

When you click the button, the stack will resize to the width of the field,
in other words, the right edge of the field will still be off the right
edge of the stack.  The only way this works correctly is if the field's
left edge is at the left edge of the stack.

I'm sure this is way formattedWIdth has always worked so it's not likely to
be changed but it seems to be a not very useful implementation to me.

Is there some other property that can be used to set the width of a stack
to something that really does include all the objects on it?

Pete
lcSQL Software 
Home of lcStackBrowser  and
SQLiteAdmin 
___
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-livecode


Re: Problem with filter and regex

2014-07-10 Thread Peter Haworth
I think adding the tab at the end of the pattern will ensure this works, so:

^[a-z]\d+\t

Somewhat depends on exactly what he's looking for  with the regex but the
important part is the ^ and the \t with the rest being dependent on the
format of what he's looking for.


Pete
lcSQL Software 
Home of lcStackBrowser  and
SQLiteAdmin 


On Thu, Jul 10, 2014 at 8:21 AM, Charles E Buchwald 
wrote:

> OK, then how about this:
> ^[a-z]\d+
> That translates as... start of line, plus 1 alphabetic character, plus one
> or more digits.
> - Charles
>
> On 10 Jul 2014, at 10:06 AM, Magicgate Software - Skip Kimpel <
> s...@magicgate.com> wrote:
>
> > I additionally noticed that if my search term is b108 it also pulls over
> > b108-option1, b108-option2, etc.
> >
> > I need it to only filter b108 and not those other items.
> >
> >
> > On Thu, Jul 10, 2014 at 10:05 AM, Magicgate Software - Skip Kimpel <
> > s...@magicgate.com> wrote:
> >
> >> I am reading the data from a datagrid into a variable before applying
> the
> >> filter so it would be a TAB delimiter.
> >>
> >>
> >> On Thu, Jul 10, 2014 at 9:52 AM, John Craig  wrote:
> >>
> >>> Which item delimiter are you using?  For example, if it's a TAB, maybe
> >>> you can specify a pattern ending with a tab, but disallowing any
> further
> >>> tabs..
> >>>
> >>>
> >>>
> >>> On 10/07/2014 14:42, Magicgate Software - Skip Kimpel wrote:
> >>>
>  I think I have found the cause of the issue, now I need to figure out
> how
>  to solve it.
> 
>  The regex pattern I am looking for appears in other lines because
> there
>  is
>  a description field that lists "related parts."  The one consistency I
>  have
>  is that the pattern I am comparing to should be looking only at
> column 1
>  of
>  tdg2Text
> 
>  I know this is not accurate but is there a way to say something like
>  this:
>  filter lines of ITEM1 of tdg2Text with regex pattern tRegexp into
> tTemp
> 
>  Trying to limit the filter based on the first item in that line VS the
>  entire line.
> 
>  Ideas?
> 
>  Thank you,
>  SKIP
> 
> 
> 
>  On Wed, Jul 9, 2014 at 2:02 PM, Bernard Devlin 
>  wrote:
> 
>  I haven't use the filter by regex pattern, but perhaps try putting the
> > "End
> > of Line" marker ($) at the end of your regex.  You may need the
> "Start
> > of
> > Line" marker too.
> >
> > ^.*cat.*mat$
> >
> > ^ is the Start of Line marker.
> >
> > Bernard
> >
> >
> > On Wed, Jul 9, 2014 at 4:28 PM, Magicgate Software - Skip Kimpel <
> > s...@magicgate.com> wrote:
> >
> > Hello LC'ers
> >>
> >> I am comparing two lists using the following:
> >>filter lines of tdg2Text with regex pattern tRegexp into
> tTemp
> >>
> >> The problem I have is that this is pulling up multiple lines in
> >> tdg2Text
> >> when if fact I need to filter out a specific line.  tRegExp should
> >> MATCH
> >> (exactly) item 1 of tdg2Text.
> >>
> >> Make sense?
> >>
> >> SKIP
>
> --
> Charles E. Buchwald
> CEO/Director General
> Museografica Digital
> http://digital.museografica.com
>
> LC Developer Tools: http://buchwald.ca/developer-tools/
>
> Email Notice: http://wp.me/P3aT4d-33
>
>
> ___
> 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-livecode
>
___
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-livecode


Re: Problem with filter and regex

2014-07-10 Thread Magicgate Software - Skip Kimpel
The problem is that the item does not always start with either a number or
a letter... it can be different every time.  So I am thinking the
^yourregexpattern\t method is the way to go... I will try it out and let
you know!

SKIP


On Thu, Jul 10, 2014 at 11:10 AM, Charles E Buchwald 
wrote:

> So... ^yourregexpattern\t
> ^ is the start of line marker
> \t is the (usual) regex for a tab character
> - Charles
>
> On 10 Jul 2014, at 9:05 AM, Magicgate Software - Skip Kimpel <
> s...@magicgate.com> wrote:
>
> > I am reading the data from a datagrid into a variable before applying the
> > filter so it would be a TAB delimiter.
> >
> >
> > On Thu, Jul 10, 2014 at 9:52 AM, John Craig  wrote:
> >
> >> Which item delimiter are you using?  For example, if it's a TAB, maybe
> you
> >> can specify a pattern ending with a tab, but disallowing any further
> tabs..
> >>
> >>
> >>
> >> On 10/07/2014 14:42, Magicgate Software - Skip Kimpel wrote:
> >>
> >>> I think I have found the cause of the issue, now I need to figure out
> how
> >>> to solve it.
> >>>
> >>> The regex pattern I am looking for appears in other lines because
> there is
> >>> a description field that lists "related parts."  The one consistency I
> >>> have
> >>> is that the pattern I am comparing to should be looking only at column
> 1
> >>> of
> >>> tdg2Text
> >>>
> >>> I know this is not accurate but is there a way to say something like
> this:
> >>> filter lines of ITEM1 of tdg2Text with regex pattern tRegexp into tTemp
> >>>
> >>> Trying to limit the filter based on the first item in that line VS the
> >>> entire line.
> >>>
> >>> Ideas?
> >>>
> >>> Thank you,
> >>> SKIP
> >>>
> >>>
> >>>
> >>> On Wed, Jul 9, 2014 at 2:02 PM, Bernard Devlin 
> >>> wrote:
> >>>
> >>> I haven't use the filter by regex pattern, but perhaps try putting the
>  "End
>  of Line" marker ($) at the end of your regex.  You may need the
> "Start of
>  Line" marker too.
> 
>  ^.*cat.*mat$
> 
>  ^ is the Start of Line marker.
> 
>  Bernard
> 
> 
>  On Wed, Jul 9, 2014 at 4:28 PM, Magicgate Software - Skip Kimpel <
>  s...@magicgate.com> wrote:
> 
>  Hello LC'ers
> >
> > I am comparing two lists using the following:
> >filter lines of tdg2Text with regex pattern tRegexp into tTemp
> >
> > The problem I have is that this is pulling up multiple lines in
> tdg2Text
> > when if fact I need to filter out a specific line.  tRegExp should
> MATCH
> > (exactly) item 1 of tdg2Text.
> >
> > Make sense?
> >
> > SKIP
> > ___
> > 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-livecode
> >
> > ___
>  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-livecode
> 
>  ___
> >>> 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-livecode
> >>>
> >>>
> >>
> >> ___
> >> 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-livecode
> >>
> > ___
> > 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-livecode
>
> --
> Charles E. Buchwald
> CEO/Director General
> Museografica Digital
> http://digital.museografica.com
>
> LC Developer Tools: http://buchwald.ca/developer-tools/
>
> Email Notice: http://wp.me/P3aT4d-33
>
>
> ___
> 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-livecode
>
___
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-livecode


Re: formattedWidth

2014-07-10 Thread Scott Rossi
I'm still not quite clear on what you're trying to accomplish.  If you
want to size a stack to the rect of all visible elements on a card, you
need to check the extents of those objects -- the right-most and
bottom-most edges -- not the space they occupy with formattedWidth or
height.

If I understand what you're looking to do, loop through your card objects,
grab the greatest right and bottom extents, and that should give you the
dimensions to use for your stack.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 7/10/14 10:07 AM, "Peter Haworth"  wrote:

>I recently posted about how to adjust the size of different cards within a
>stack and part of the solution I tried was using the formattedWidth and
>formattedHeight properties (actually the effective versions of them).
>
>I'm now seeing that the formattedWidth (and probably formattedHeight)
>return very unexpected values.
>
>The dictionary says it returns the width of a rectangle that contains all
>objects in the card whose visible property is true but I'm not seeing
>that.
>
>Make yourself a stack with a field on it with it's left edge in the middle
>of the stack and it's right edge somewhere off the right edge of the
>stack.
>
>Put a button on the card with the following code:
>
>get the rectangle of this stack
>put item 1 of it + the formattedWidth of this card into item 3 of it
>set the rectangle of this stack to it
>
>When you click the button, the stack will resize to the width of the
>field,
>in other words, the right edge of the field will still be off the right
>edge of the stack.  The only way this works correctly is if the field's
>left edge is at the left edge of the stack.
>
>I'm sure this is way formattedWIdth has always worked so it's not likely
>to
>be changed but it seems to be a not very useful implementation to me.
>
>Is there some other property that can be used to set the width of a stack
>to something that really does include all the objects on it?
>
>Pete
>lcSQL Software 
>Home of lcStackBrowser  and
>SQLiteAdmin 
>___
>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-livecode



___
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-livecode


Re: Conflicting paths

2014-07-10 Thread Richmond

I have a wobbly hand: or wobbly enough that I cannot draw
an oval graphic to use as a path in a stack that doesn't look
horrible.

Does anybody have any tips on how to make an oval path with points

[that means, before you all rush to point something out, that
the oval object is no use at all]

that doesn't look like it has been drawn by a middle-aged dipsomaniac?

Richmond.

___
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-livecode


Re: Problem with filter and regex

2014-07-10 Thread Magicgate Software - Skip Kimpel
It is still thinking that AP6003 and AP60003BF are the same... I am using:
filter lines of tdg2Text with regex pattern "^"&tRegexp&"\t" into tTemp
(where tRegexp=AP6003)

Hm...


On Thu, Jul 10, 2014 at 1:30 PM, Magicgate Software - Skip Kimpel <
s...@magicgate.com> wrote:

> The problem is that the item does not always start with either a number or
> a letter... it can be different every time.  So I am thinking the
> ^yourregexpattern\t method is the way to go... I will try it out and let
> you know!
>
> SKIP
>
>
> On Thu, Jul 10, 2014 at 11:10 AM, Charles E Buchwald 
> wrote:
>
>> So... ^yourregexpattern\t
>> ^ is the start of line marker
>> \t is the (usual) regex for a tab character
>> - Charles
>>
>> On 10 Jul 2014, at 9:05 AM, Magicgate Software - Skip Kimpel <
>> s...@magicgate.com> wrote:
>>
>> > I am reading the data from a datagrid into a variable before applying
>> the
>> > filter so it would be a TAB delimiter.
>> >
>> >
>> > On Thu, Jul 10, 2014 at 9:52 AM, John Craig  wrote:
>> >
>> >> Which item delimiter are you using?  For example, if it's a TAB, maybe
>> you
>> >> can specify a pattern ending with a tab, but disallowing any further
>> tabs..
>> >>
>> >>
>> >>
>> >> On 10/07/2014 14:42, Magicgate Software - Skip Kimpel wrote:
>> >>
>> >>> I think I have found the cause of the issue, now I need to figure out
>> how
>> >>> to solve it.
>> >>>
>> >>> The regex pattern I am looking for appears in other lines because
>> there is
>> >>> a description field that lists "related parts."  The one consistency I
>> >>> have
>> >>> is that the pattern I am comparing to should be looking only at
>> column 1
>> >>> of
>> >>> tdg2Text
>> >>>
>> >>> I know this is not accurate but is there a way to say something like
>> this:
>> >>> filter lines of ITEM1 of tdg2Text with regex pattern tRegexp into
>> tTemp
>> >>>
>> >>> Trying to limit the filter based on the first item in that line VS the
>> >>> entire line.
>> >>>
>> >>> Ideas?
>> >>>
>> >>> Thank you,
>> >>> SKIP
>> >>>
>> >>>
>> >>>
>> >>> On Wed, Jul 9, 2014 at 2:02 PM, Bernard Devlin 
>> >>> wrote:
>> >>>
>> >>> I haven't use the filter by regex pattern, but perhaps try putting the
>>  "End
>>  of Line" marker ($) at the end of your regex.  You may need the
>> "Start of
>>  Line" marker too.
>> 
>>  ^.*cat.*mat$
>> 
>>  ^ is the Start of Line marker.
>> 
>>  Bernard
>> 
>> 
>>  On Wed, Jul 9, 2014 at 4:28 PM, Magicgate Software - Skip Kimpel <
>>  s...@magicgate.com> wrote:
>> 
>>  Hello LC'ers
>> >
>> > I am comparing two lists using the following:
>> >filter lines of tdg2Text with regex pattern tRegexp into
>> tTemp
>> >
>> > The problem I have is that this is pulling up multiple lines in
>> tdg2Text
>> > when if fact I need to filter out a specific line.  tRegExp should
>> MATCH
>> > (exactly) item 1 of tdg2Text.
>> >
>> > Make sense?
>> >
>> > SKIP
>> > ___
>> > 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-livecode
>> >
>> > ___
>>  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-livecode
>> 
>>  ___
>> >>> 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-livecode
>> >>>
>> >>>
>> >>
>> >> ___
>> >> 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-livecode
>> >>
>> > ___
>> > 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-livecode
>>
>> --
>> Charles E. Buchwald
>> CEO/Director General
>> Museografica Digital
>> http://digital.museografica.com
>>
>> LC Developer Tools: http://buchwald.ca/developer-tools/
>>
>> Email Notice: http://wp.me/P3aT4d-33
>>
>>
>> ___
>> 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-livecode
>>
>
>
___

Re: Problem with filter and regex

2014-07-10 Thread Magicgate Software - Skip Kimpel
And once gain, it appears to be because AP600BF includes in it's line
description "AP6003 is a replacement part for"  So it is still getting
confused.


On Thu, Jul 10, 2014 at 1:45 PM, Magicgate Software - Skip Kimpel <
s...@magicgate.com> wrote:

> It is still thinking that AP6003 and AP60003BF are the same... I am using:
> filter lines of tdg2Text with regex pattern "^"&tRegexp&"\t" into tTemp
> (where tRegexp=AP6003)
>
> Hm...
>
>
> On Thu, Jul 10, 2014 at 1:30 PM, Magicgate Software - Skip Kimpel <
> s...@magicgate.com> wrote:
>
>> The problem is that the item does not always start with either a number
>> or a letter... it can be different every time.  So I am thinking the
>> ^yourregexpattern\t method is the way to go... I will try it out and let
>> you know!
>>
>> SKIP
>>
>>
>> On Thu, Jul 10, 2014 at 11:10 AM, Charles E Buchwald > > wrote:
>>
>>> So... ^yourregexpattern\t
>>> ^ is the start of line marker
>>> \t is the (usual) regex for a tab character
>>> - Charles
>>>
>>> On 10 Jul 2014, at 9:05 AM, Magicgate Software - Skip Kimpel <
>>> s...@magicgate.com> wrote:
>>>
>>> > I am reading the data from a datagrid into a variable before applying
>>> the
>>> > filter so it would be a TAB delimiter.
>>> >
>>> >
>>> > On Thu, Jul 10, 2014 at 9:52 AM, John Craig  wrote:
>>> >
>>> >> Which item delimiter are you using?  For example, if it's a TAB,
>>> maybe you
>>> >> can specify a pattern ending with a tab, but disallowing any further
>>> tabs..
>>> >>
>>> >>
>>> >>
>>> >> On 10/07/2014 14:42, Magicgate Software - Skip Kimpel wrote:
>>> >>
>>> >>> I think I have found the cause of the issue, now I need to figure
>>> out how
>>> >>> to solve it.
>>> >>>
>>> >>> The regex pattern I am looking for appears in other lines because
>>> there is
>>> >>> a description field that lists "related parts."  The one consistency
>>> I
>>> >>> have
>>> >>> is that the pattern I am comparing to should be looking only at
>>> column 1
>>> >>> of
>>> >>> tdg2Text
>>> >>>
>>> >>> I know this is not accurate but is there a way to say something like
>>> this:
>>> >>> filter lines of ITEM1 of tdg2Text with regex pattern tRegexp into
>>> tTemp
>>> >>>
>>> >>> Trying to limit the filter based on the first item in that line VS
>>> the
>>> >>> entire line.
>>> >>>
>>> >>> Ideas?
>>> >>>
>>> >>> Thank you,
>>> >>> SKIP
>>> >>>
>>> >>>
>>> >>>
>>> >>> On Wed, Jul 9, 2014 at 2:02 PM, Bernard Devlin 
>>> >>> wrote:
>>> >>>
>>> >>> I haven't use the filter by regex pattern, but perhaps try putting
>>> the
>>>  "End
>>>  of Line" marker ($) at the end of your regex.  You may need the
>>> "Start of
>>>  Line" marker too.
>>> 
>>>  ^.*cat.*mat$
>>> 
>>>  ^ is the Start of Line marker.
>>> 
>>>  Bernard
>>> 
>>> 
>>>  On Wed, Jul 9, 2014 at 4:28 PM, Magicgate Software - Skip Kimpel <
>>>  s...@magicgate.com> wrote:
>>> 
>>>  Hello LC'ers
>>> >
>>> > I am comparing two lists using the following:
>>> >filter lines of tdg2Text with regex pattern tRegexp into
>>> tTemp
>>> >
>>> > The problem I have is that this is pulling up multiple lines in
>>> tdg2Text
>>> > when if fact I need to filter out a specific line.  tRegExp should
>>> MATCH
>>> > (exactly) item 1 of tdg2Text.
>>> >
>>> > Make sense?
>>> >
>>> > SKIP
>>> > ___
>>> > 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-livecode
>>> >
>>> > ___
>>>  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-livecode
>>> 
>>>  ___
>>> >>> 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-livecode
>>> >>>
>>> >>>
>>> >>
>>> >> ___
>>> >> 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-livecode
>>> >>
>>> > ___
>>> > 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-livecode
>>>
>>> --
>>> Charles E. Buchwald
>>> CEO/Director General
>>> Museografica Digital
>>> http://digital.museografica

Re: formattedWidth

2014-07-10 Thread Richmond

On 10/07/14 20:07, Peter Haworth wrote:



Is there some other property that can be used to set the width of a stack
to something that really does include all the objects on it?





My extremely primitive recipe to do just that is here:

http://forums.livecode.com/viewtopic.php?f=7&t=21023

Richmond.

___
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-livecode


Re: Problem with filter and regex

2014-07-10 Thread Charles E Buchwald
Hi SKIP,

Now I'm confused!

I usually start a thorny programming problem by trying to state the logic in 
plain English. Would either of the following phrases properly filter your data 
if it could be expressed as regex?

the first item of a line, which begins with a letter or number, but always has 
a series of digits, which may or may not be followed by a series of one or more 
letters, always followed by a tab

or is it...

the first item of a line, which begins with a letter or number, but always has 
a series of digits, which may or may not be followed by a series of one or more 
letters or other characters not included digits, always followed by a tab or a 
space

Maybe posting several sample lines of your data would help us list members help 
you...

- Charles

On 10 Jul 2014, at 12:50 PM, Magicgate Software - Skip Kimpel 
 wrote:

> And once gain, it appears to be because AP600BF includes in it's line
> description "AP6003 is a replacement part for"  So it is still getting
> confused.
> 
> 
> On Thu, Jul 10, 2014 at 1:45 PM, Magicgate Software - Skip Kimpel <
> s...@magicgate.com> wrote:
> 
>> It is still thinking that AP6003 and AP60003BF are the same... I am using:
>> filter lines of tdg2Text with regex pattern "^"&tRegexp&"\t" into tTemp
>> (where tRegexp=AP6003)
>> 
>> Hm...
>> 
>> 
>> On Thu, Jul 10, 2014 at 1:30 PM, Magicgate Software - Skip Kimpel <
>> s...@magicgate.com> wrote:
>> 
>>> The problem is that the item does not always start with either a number
>>> or a letter... it can be different every time.  So I am thinking the
>>> ^yourregexpattern\t method is the way to go... I will try it out and let
>>> you know!
>>> 
>>> SKIP
>>> 
>>> 
>>> On Thu, Jul 10, 2014 at 11:10 AM, Charles E Buchwald >>> wrote:
>>> 
 So... ^yourregexpattern\t
 ^ is the start of line marker
 \t is the (usual) regex for a tab character
 - Charles
 
 On 10 Jul 2014, at 9:05 AM, Magicgate Software - Skip Kimpel <
 s...@magicgate.com> wrote:
 
> I am reading the data from a datagrid into a variable before applying
 the
> filter so it would be a TAB delimiter.
> 
> 
> On Thu, Jul 10, 2014 at 9:52 AM, John Craig  wrote:
> 
>> Which item delimiter are you using?  For example, if it's a TAB,
 maybe you
>> can specify a pattern ending with a tab, but disallowing any further
 tabs..
>> 
>> 
>> 
>> On 10/07/2014 14:42, Magicgate Software - Skip Kimpel wrote:
>> 
>>> I think I have found the cause of the issue, now I need to figure
 out how
>>> to solve it.
>>> 
>>> The regex pattern I am looking for appears in other lines because
 there is
>>> a description field that lists "related parts."  The one consistency
 I
>>> have
>>> is that the pattern I am comparing to should be looking only at
 column 1
>>> of
>>> tdg2Text
>>> 
>>> I know this is not accurate but is there a way to say something like
 this:
>>> filter lines of ITEM1 of tdg2Text with regex pattern tRegexp into
 tTemp
>>> 
>>> Trying to limit the filter based on the first item in that line VS
 the
>>> entire line.
>>> 
>>> Ideas?
>>> 
>>> Thank you,
>>> SKIP
>>> 
>>> 
>>> 
>>> On Wed, Jul 9, 2014 at 2:02 PM, Bernard Devlin 
>>> wrote:
>>> 
>>> I haven't use the filter by regex pattern, but perhaps try putting
 the
 "End
 of Line" marker ($) at the end of your regex.  You may need the
 "Start of
 Line" marker too.
 
 ^.*cat.*mat$
 
 ^ is the Start of Line marker.
 
 Bernard
 
 
 On Wed, Jul 9, 2014 at 4:28 PM, Magicgate Software - Skip Kimpel <
 s...@magicgate.com> wrote:
 
 Hello LC'ers
> 
> I am comparing two lists using the following:
>   filter lines of tdg2Text with regex pattern tRegexp into
 tTemp
> 
> The problem I have is that this is pulling up multiple lines in
 tdg2Text
> when if fact I need to filter out a specific line.  tRegExp should
 MATCH
> (exactly) item 1 of tdg2Text.
> 
> Make sense?
> 
> SKIP

--
Charles E. Buchwald
CEO/Director General
Museografica Digital
http://digital.museografica.com

LC Developer Tools: http://buchwald.ca/developer-tools/

Email Notice: http://wp.me/P3aT4d-33


___
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-livecode


Re: Problem with filter and regex

2014-07-10 Thread Peter Haworth
Hi Skip,
I just tried your code in a test stack using LC 6.6.2

The data I used was:

AP6003xyz
AP6003BFReplacement for AP6003
AP6003XYdef

Only line 1 was selected.

It's possible I'm misinterpreting the way your data is laid out.

Are you sure that tRegExp has "AP6003" in it?  And that your data is using
tabs between items?  Obvious stuff I know but sometimes the obvious is hard
to spot!


Pete
lcSQL Software 
Home of lcStackBrowser  and
SQLiteAdmin 


On Thu, Jul 10, 2014 at 10:50 AM, Magicgate Software - Skip Kimpel <
s...@magicgate.com> wrote:

> And once gain, it appears to be because AP600BF includes in it's line
> description "AP6003 is a replacement part for"  So it is still getting
> confused.
>
>
> On Thu, Jul 10, 2014 at 1:45 PM, Magicgate Software - Skip Kimpel <
> s...@magicgate.com> wrote:
>
> > It is still thinking that AP6003 and AP60003BF are the same... I am
> using:
> > filter lines of tdg2Text with regex pattern "^"&tRegexp&"\t" into tTemp
> > (where tRegexp=AP6003)
> >
> > Hm...
> >
> >
> > On Thu, Jul 10, 2014 at 1:30 PM, Magicgate Software - Skip Kimpel <
> > s...@magicgate.com> wrote:
> >
> >> The problem is that the item does not always start with either a number
> >> or a letter... it can be different every time.  So I am thinking the
> >> ^yourregexpattern\t method is the way to go... I will try it out and let
> >> you know!
> >>
> >> SKIP
> >>
> >>
> >> On Thu, Jul 10, 2014 at 11:10 AM, Charles E Buchwald <
> char...@buchwald.ca
> >> > wrote:
> >>
> >>> So... ^yourregexpattern\t
> >>> ^ is the start of line marker
> >>> \t is the (usual) regex for a tab character
> >>> - Charles
> >>>
> >>> On 10 Jul 2014, at 9:05 AM, Magicgate Software - Skip Kimpel <
> >>> s...@magicgate.com> wrote:
> >>>
> >>> > I am reading the data from a datagrid into a variable before applying
> >>> the
> >>> > filter so it would be a TAB delimiter.
> >>> >
> >>> >
> >>> > On Thu, Jul 10, 2014 at 9:52 AM, John Craig 
> wrote:
> >>> >
> >>> >> Which item delimiter are you using?  For example, if it's a TAB,
> >>> maybe you
> >>> >> can specify a pattern ending with a tab, but disallowing any further
> >>> tabs..
> >>> >>
> >>> >>
> >>> >>
> >>> >> On 10/07/2014 14:42, Magicgate Software - Skip Kimpel wrote:
> >>> >>
> >>> >>> I think I have found the cause of the issue, now I need to figure
> >>> out how
> >>> >>> to solve it.
> >>> >>>
> >>> >>> The regex pattern I am looking for appears in other lines because
> >>> there is
> >>> >>> a description field that lists "related parts."  The one
> consistency
> >>> I
> >>> >>> have
> >>> >>> is that the pattern I am comparing to should be looking only at
> >>> column 1
> >>> >>> of
> >>> >>> tdg2Text
> >>> >>>
> >>> >>> I know this is not accurate but is there a way to say something
> like
> >>> this:
> >>> >>> filter lines of ITEM1 of tdg2Text with regex pattern tRegexp into
> >>> tTemp
> >>> >>>
> >>> >>> Trying to limit the filter based on the first item in that line VS
> >>> the
> >>> >>> entire line.
> >>> >>>
> >>> >>> Ideas?
> >>> >>>
> >>> >>> Thank you,
> >>> >>> SKIP
> >>> >>>
> >>> >>>
> >>> >>>
> >>> >>> On Wed, Jul 9, 2014 at 2:02 PM, Bernard Devlin  >
> >>> >>> wrote:
> >>> >>>
> >>> >>> I haven't use the filter by regex pattern, but perhaps try putting
> >>> the
> >>>  "End
> >>>  of Line" marker ($) at the end of your regex.  You may need the
> >>> "Start of
> >>>  Line" marker too.
> >>> 
> >>>  ^.*cat.*mat$
> >>> 
> >>>  ^ is the Start of Line marker.
> >>> 
> >>>  Bernard
> >>> 
> >>> 
> >>>  On Wed, Jul 9, 2014 at 4:28 PM, Magicgate Software - Skip Kimpel <
> >>>  s...@magicgate.com> wrote:
> >>> 
> >>>  Hello LC'ers
> >>> >
> >>> > I am comparing two lists using the following:
> >>> >filter lines of tdg2Text with regex pattern tRegexp into
> >>> tTemp
> >>> >
> >>> > The problem I have is that this is pulling up multiple lines in
> >>> tdg2Text
> >>> > when if fact I need to filter out a specific line.  tRegExp
> should
> >>> MATCH
> >>> > (exactly) item 1 of tdg2Text.
> >>> >
> >>> > Make sense?
> >>> >
> >>> > SKIP
> >>> > ___
> >>> > 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-livecode
> >>> >
> >>> > ___
> >>>  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-livecode
> >>> 
> >>>  ___

RE: formattedWidth

2014-07-10 Thread Ralph DiMola
Peter,

I have observed this since the new field control was introduced in
5.somthing. I have to keep adjusting my code to take into account for minor
changes as new LC versions get released. I have submitted a bug report.
http://quality.runrev.com/show_bug.cgi?id=12176 Check out the demo stack.
This is related to bug reports 11640/11904


Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Peter Haworth
Sent: Thursday, July 10, 2014 1:07 PM
To: How to use LiveCode
Subject: formattedWidth

I recently posted about how to adjust the size of different cards within a
stack and part of the solution I tried was using the formattedWidth and
formattedHeight properties (actually the effective versions of them).

I'm now seeing that the formattedWidth (and probably formattedHeight) return
very unexpected values.

The dictionary says it returns the width of a rectangle that contains all
objects in the card whose visible property is true but I'm not seeing that.

Make yourself a stack with a field on it with it's left edge in the middle
of the stack and it's right edge somewhere off the right edge of the stack.

Put a button on the card with the following code:

get the rectangle of this stack
put item 1 of it + the formattedWidth of this card into item 3 of it set the
rectangle of this stack to it

When you click the button, the stack will resize to the width of the field,
in other words, the right edge of the field will still be off the right edge
of the stack.  The only way this works correctly is if the field's left edge
is at the left edge of the stack.

I'm sure this is way formattedWIdth has always worked so it's not likely to
be changed but it seems to be a not very useful implementation to me.

Is there some other property that can be used to set the width of a stack to
something that really does include all the objects on it?

Pete
lcSQL Software 
Home of lcStackBrowser  and
SQLiteAdmin 
___
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-livecode


___
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-livecode


Re: Problem with filter and regex

2014-07-10 Thread Peter Haworth
You could also do this without using a regexp:

filter tdg2Text with (tRegExp & tab & "*") into field "Field2"

Just in case there's something weird happening with the regexp

Pete
lcSQL Software 
Home of lcStackBrowser  and
SQLiteAdmin 


On Thu, Jul 10, 2014 at 10:50 AM, Magicgate Software - Skip Kimpel <
s...@magicgate.com> wrote:

> And once gain, it appears to be because AP600BF includes in it's line
> description "AP6003 is a replacement part for"  So it is still getting
> confused.
>
>
> On Thu, Jul 10, 2014 at 1:45 PM, Magicgate Software - Skip Kimpel <
> s...@magicgate.com> wrote:
>
> > It is still thinking that AP6003 and AP60003BF are the same... I am
> using:
> > filter lines of tdg2Text with regex pattern "^"&tRegexp&"\t" into tTemp
> > (where tRegexp=AP6003)
> >
> > Hm...
> >
> >
> > On Thu, Jul 10, 2014 at 1:30 PM, Magicgate Software - Skip Kimpel <
> > s...@magicgate.com> wrote:
> >
> >> The problem is that the item does not always start with either a number
> >> or a letter... it can be different every time.  So I am thinking the
> >> ^yourregexpattern\t method is the way to go... I will try it out and let
> >> you know!
> >>
> >> SKIP
> >>
> >>
> >> On Thu, Jul 10, 2014 at 11:10 AM, Charles E Buchwald <
> char...@buchwald.ca
> >> > wrote:
> >>
> >>> So... ^yourregexpattern\t
> >>> ^ is the start of line marker
> >>> \t is the (usual) regex for a tab character
> >>> - Charles
> >>>
> >>> On 10 Jul 2014, at 9:05 AM, Magicgate Software - Skip Kimpel <
> >>> s...@magicgate.com> wrote:
> >>>
> >>> > I am reading the data from a datagrid into a variable before applying
> >>> the
> >>> > filter so it would be a TAB delimiter.
> >>> >
> >>> >
> >>> > On Thu, Jul 10, 2014 at 9:52 AM, John Craig 
> wrote:
> >>> >
> >>> >> Which item delimiter are you using?  For example, if it's a TAB,
> >>> maybe you
> >>> >> can specify a pattern ending with a tab, but disallowing any further
> >>> tabs..
> >>> >>
> >>> >>
> >>> >>
> >>> >> On 10/07/2014 14:42, Magicgate Software - Skip Kimpel wrote:
> >>> >>
> >>> >>> I think I have found the cause of the issue, now I need to figure
> >>> out how
> >>> >>> to solve it.
> >>> >>>
> >>> >>> The regex pattern I am looking for appears in other lines because
> >>> there is
> >>> >>> a description field that lists "related parts."  The one
> consistency
> >>> I
> >>> >>> have
> >>> >>> is that the pattern I am comparing to should be looking only at
> >>> column 1
> >>> >>> of
> >>> >>> tdg2Text
> >>> >>>
> >>> >>> I know this is not accurate but is there a way to say something
> like
> >>> this:
> >>> >>> filter lines of ITEM1 of tdg2Text with regex pattern tRegexp into
> >>> tTemp
> >>> >>>
> >>> >>> Trying to limit the filter based on the first item in that line VS
> >>> the
> >>> >>> entire line.
> >>> >>>
> >>> >>> Ideas?
> >>> >>>
> >>> >>> Thank you,
> >>> >>> SKIP
> >>> >>>
> >>> >>>
> >>> >>>
> >>> >>> On Wed, Jul 9, 2014 at 2:02 PM, Bernard Devlin  >
> >>> >>> wrote:
> >>> >>>
> >>> >>> I haven't use the filter by regex pattern, but perhaps try putting
> >>> the
> >>>  "End
> >>>  of Line" marker ($) at the end of your regex.  You may need the
> >>> "Start of
> >>>  Line" marker too.
> >>> 
> >>>  ^.*cat.*mat$
> >>> 
> >>>  ^ is the Start of Line marker.
> >>> 
> >>>  Bernard
> >>> 
> >>> 
> >>>  On Wed, Jul 9, 2014 at 4:28 PM, Magicgate Software - Skip Kimpel <
> >>>  s...@magicgate.com> wrote:
> >>> 
> >>>  Hello LC'ers
> >>> >
> >>> > I am comparing two lists using the following:
> >>> >filter lines of tdg2Text with regex pattern tRegexp into
> >>> tTemp
> >>> >
> >>> > The problem I have is that this is pulling up multiple lines in
> >>> tdg2Text
> >>> > when if fact I need to filter out a specific line.  tRegExp
> should
> >>> MATCH
> >>> > (exactly) item 1 of tdg2Text.
> >>> >
> >>> > Make sense?
> >>> >
> >>> > SKIP
> >>> > ___
> >>> > 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-livecode
> >>> >
> >>> > ___
> >>>  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-livecode
> >>> 
> >>>  ___
> >>> >>> use-livecode mailing list
> >>> >>> use-livecode@lists.runrev.com
> >>> >>> Please visit this url to subscribe, unsubscribe and manage your
> >>> >>> subscription preferences:
> >>> >>> http://lists.runre

Re: formattedWidth

2014-07-10 Thread Peter Haworth
Hi SCott,
Yes, I'm currently doing what you suggest by looking at all the controls on
the card.

What I don't understand is why the formattedWidth of a card doesn't return
what's described in the dictionary.  It appears to simply return the width
of the widest control on the card when what it should do is return the
right of the rightmost control.  Seems like a bug to me but that property
has been around for a long time so not sure what it hasn't come up before.


Pete
lcSQL Software 
Home of lcStackBrowser  and
SQLiteAdmin 


On Thu, Jul 10, 2014 at 10:35 AM, Scott Rossi 
wrote:

> I'm still not quite clear on what you're trying to accomplish.  If you
> want to size a stack to the rect of all visible elements on a card, you
> need to check the extents of those objects -- the right-most and
> bottom-most edges -- not the space they occupy with formattedWidth or
> height.
>
> If I understand what you're looking to do, loop through your card objects,
> grab the greatest right and bottom extents, and that should give you the
> dimensions to use for your stack.
>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
>
>
>
>
> On 7/10/14 10:07 AM, "Peter Haworth"  wrote:
>
> >I recently posted about how to adjust the size of different cards within a
> >stack and part of the solution I tried was using the formattedWidth and
> >formattedHeight properties (actually the effective versions of them).
> >
> >I'm now seeing that the formattedWidth (and probably formattedHeight)
> >return very unexpected values.
> >
> >The dictionary says it returns the width of a rectangle that contains all
> >objects in the card whose visible property is true but I'm not seeing
> >that.
> >
> >Make yourself a stack with a field on it with it's left edge in the middle
> >of the stack and it's right edge somewhere off the right edge of the
> >stack.
> >
> >Put a button on the card with the following code:
> >
> >get the rectangle of this stack
> >put item 1 of it + the formattedWidth of this card into item 3 of it
> >set the rectangle of this stack to it
> >
> >When you click the button, the stack will resize to the width of the
> >field,
> >in other words, the right edge of the field will still be off the right
> >edge of the stack.  The only way this works correctly is if the field's
> >left edge is at the left edge of the stack.
> >
> >I'm sure this is way formattedWIdth has always worked so it's not likely
> >to
> >be changed but it seems to be a not very useful implementation to me.
> >
> >Is there some other property that can be used to set the width of a stack
> >to something that really does include all the objects on it?
> >
> >Pete
> >lcSQL Software 
> >Home of lcStackBrowser  and
> >SQLiteAdmin 
> >___
> >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-livecode
>
>
>
> ___
> 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-livecode
>
___
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-livecode


Re: formattedWidth

2014-07-10 Thread Peter Haworth
Thanks Richmond, that's essentially what I'm doing except I use the
rectangle of the stack instead of the height and width so the stack
position doesn't change.

Pete
lcSQL Software 
Home of lcStackBrowser  and
SQLiteAdmin 


On Thu, Jul 10, 2014 at 11:10 AM, Richmond 
wrote:

> On 10/07/14 20:07, Peter Haworth wrote:
>
>> 
>>
>>
>> Is there some other property that can be used to set the width of a stack
>> to something that really does include all the objects on it?
>>
>>
>>  
>
> My extremely primitive recipe to do just that is here:
>
> http://forums.livecode.com/viewtopic.php?f=7&t=21023
>
> Richmond.
>
>
> ___
> 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-livecode
>
___
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-livecode


Re: formattedWidth

2014-07-10 Thread Richmond

I have just uploaded a newer version of my stack:

http://forums.livecode.com/viewtopic.php?f=7&t=21023&p=107288#p107288

and I cannot for the life of me understand why the formattedWidth of the 
card does not correspond

to item 1 of the loc of the 'furthest West' control, or its LEFT.

Richmond.

___
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-livecode


Re: formattedWidth

2014-07-10 Thread Scott Rossi
I think you meant the formattedRect property, not formattedWidth.  If you
check the formattedRect property, you should be able to get right/bottom
positions you want without looping through the card objects.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 7/10/14 12:02 PM, "Peter Haworth"  wrote:

>Hi SCott,
>Yes, I'm currently doing what you suggest by looking at all the controls
>on
>the card.
>
>What I don't understand is why the formattedWidth of a card doesn't return
>what's described in the dictionary.  It appears to simply return the width
>of the widest control on the card when what it should do is return the
>right of the rightmost control.  Seems like a bug to me but that property
>has been around for a long time so not sure what it hasn't come up before.
>
>
>Pete
>lcSQL Software 
>Home of lcStackBrowser  and
>SQLiteAdmin 
>
>
>On Thu, Jul 10, 2014 at 10:35 AM, Scott Rossi 
>wrote:
>
>> I'm still not quite clear on what you're trying to accomplish.  If you
>> want to size a stack to the rect of all visible elements on a card, you
>> need to check the extents of those objects -- the right-most and
>> bottom-most edges -- not the space they occupy with formattedWidth or
>> height.
>>
>> If I understand what you're looking to do, loop through your card
>>objects,
>> grab the greatest right and bottom extents, and that should give you the
>> dimensions to use for your stack.
>>
>> Regards,
>>
>> Scott Rossi
>> Creative Director
>> Tactile Media, UX/UI Design
>>
>>
>>
>>
>> On 7/10/14 10:07 AM, "Peter Haworth"  wrote:
>>
>> >I recently posted about how to adjust the size of different cards
>>within a
>> >stack and part of the solution I tried was using the formattedWidth and
>> >formattedHeight properties (actually the effective versions of them).
>> >
>> >I'm now seeing that the formattedWidth (and probably formattedHeight)
>> >return very unexpected values.
>> >
>> >The dictionary says it returns the width of a rectangle that contains
>>all
>> >objects in the card whose visible property is true but I'm not seeing
>> >that.
>> >
>> >Make yourself a stack with a field on it with it's left edge in the
>>middle
>> >of the stack and it's right edge somewhere off the right edge of the
>> >stack.
>> >
>> >Put a button on the card with the following code:
>> >
>> >get the rectangle of this stack
>> >put item 1 of it + the formattedWidth of this card into item 3 of it
>> >set the rectangle of this stack to it
>> >
>> >When you click the button, the stack will resize to the width of the
>> >field,
>> >in other words, the right edge of the field will still be off the right
>> >edge of the stack.  The only way this works correctly is if the field's
>> >left edge is at the left edge of the stack.
>> >
>> >I'm sure this is way formattedWIdth has always worked so it's not
>>likely
>> >to
>> >be changed but it seems to be a not very useful implementation to me.
>> >
>> >Is there some other property that can be used to set the width of a
>>stack
>> >to something that really does include all the objects on it?
>> >
>> >Pete
>> >lcSQL Software 
>> >Home of lcStackBrowser  and
>> >SQLiteAdmin 
>> >___
>> >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-livecode
>>
>>
>>
>> ___
>> 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-livecode
>>
>___
>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-livecode



___
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-livecode


Re: formattedWidth

2014-07-10 Thread Scott Rossi
FormattedWidth and height are purely width and height measurements.  They
don't provide object any position information.

For object positions, use either the rect or formattedRect (cards/groups)
properties.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 7/10/14 12:12 PM, "Richmond"  wrote:

>I cannot for the life of me understand why the formattedWidth of the
>card does not correspond
>to item 1 of the loc of the 'furthest West' control, or its LEFT.



___
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-livecode


Re: [on-rev] libURL and https

2014-07-10 Thread Simon Smith
Does not look like it is part of LC Server, perhaps its still to come?


On Thu, Jul 10, 2014 at 5:18 PM, Richard Gaskin 
wrote:

> Is libURL available at all with LiveCode Server?
>
> On the desktop it's a backscript that gets included in our standalones at
> build time.
>
> Where is it with LiveCode Server?
>
> --
>  Richard Gaskin
>  Fourth World
>  LiveCode training and consulting: http://www.fourthworld.com
>  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
>  Follow me on Twitter:  http://twitter.com/FourthWorldSys
>
>
> ___
> 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-livecode
>



-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
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-livecode


Re: [on-rev] libURL and https

2014-07-10 Thread Scott Morrow
The docs show “server” as one of the supported platforms for libURL functions. 
However, my on-rev setup always produces an error when trying to use them.
(Tested with server engine 3.5 and 6.5)

—
Scott Morrow
Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
office 1-800-615-0867


On Jul 10, 2014, at 8:18 AM, Richard Gaskin  wrote:

> Is libURL available at all with LiveCode Server?
> 
> On the desktop it's a backscript that gets included in our standalones at 
> build time.
> 
> Where is it with LiveCode Server?
> 
> --
> Richard Gaskin
> Fourth World
> LiveCode training and consulting: http://www.fourthworld.com
> Webzine for LiveCode developers: http://www.LiveCodeJournal.com
> Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
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-livecode


Re: Problem with filter and regex

2014-07-10 Thread Magicgate Software - Skip Kimpel
MYSTERY SOLVED The previous code DID IN FACT WORK:
filter lines of tdg2Text with regex pattern "^"&tRegexp&"\t" into tTemp

The Problem?  What was showing on screen was correct... when I went to
output the file, I was not using the same regex pattern. Whoops

Thanks to all for helping out!

SKIP


On Thu, Jul 10, 2014 at 2:16 PM, Charles E Buchwald 
wrote:

> Hi SKIP,
>
> Now I'm confused!
>
> I usually start a thorny programming problem by trying to state the logic
> in plain English. Would either of the following phrases properly filter
> your data if it could be expressed as regex?
>
> the first item of a line, which begins with a letter or number, but always
> has a series of digits, which may or may not be followed by a series of one
> or more letters, always followed by a tab
>
> or is it...
>
> the first item of a line, which begins with a letter or number, but always
> has a series of digits, which may or may not be followed by a series of one
> or more letters or other characters not included digits, always followed by
> a tab or a space
>
> Maybe posting several sample lines of your data would help us list members
> help you...
>
> - Charles
>
> On 10 Jul 2014, at 12:50 PM, Magicgate Software - Skip Kimpel <
> s...@magicgate.com> wrote:
>
> > And once gain, it appears to be because AP600BF includes in it's line
> > description "AP6003 is a replacement part for"  So it is still
> getting
> > confused.
> >
> >
> > On Thu, Jul 10, 2014 at 1:45 PM, Magicgate Software - Skip Kimpel <
> > s...@magicgate.com> wrote:
> >
> >> It is still thinking that AP6003 and AP60003BF are the same... I am
> using:
> >> filter lines of tdg2Text with regex pattern "^"&tRegexp&"\t" into tTemp
> >> (where tRegexp=AP6003)
> >>
> >> Hm...
> >>
> >>
> >> On Thu, Jul 10, 2014 at 1:30 PM, Magicgate Software - Skip Kimpel <
> >> s...@magicgate.com> wrote:
> >>
> >>> The problem is that the item does not always start with either a number
> >>> or a letter... it can be different every time.  So I am thinking the
> >>> ^yourregexpattern\t method is the way to go... I will try it out and
> let
> >>> you know!
> >>>
> >>> SKIP
> >>>
> >>>
> >>> On Thu, Jul 10, 2014 at 11:10 AM, Charles E Buchwald <
> char...@buchwald.ca
>  wrote:
> >>>
>  So... ^yourregexpattern\t
>  ^ is the start of line marker
>  \t is the (usual) regex for a tab character
>  - Charles
> 
>  On 10 Jul 2014, at 9:05 AM, Magicgate Software - Skip Kimpel <
>  s...@magicgate.com> wrote:
> 
> > I am reading the data from a datagrid into a variable before applying
>  the
> > filter so it would be a TAB delimiter.
> >
> >
> > On Thu, Jul 10, 2014 at 9:52 AM, John Craig 
> wrote:
> >
> >> Which item delimiter are you using?  For example, if it's a TAB,
>  maybe you
> >> can specify a pattern ending with a tab, but disallowing any further
>  tabs..
> >>
> >>
> >>
> >> On 10/07/2014 14:42, Magicgate Software - Skip Kimpel wrote:
> >>
> >>> I think I have found the cause of the issue, now I need to figure
>  out how
> >>> to solve it.
> >>>
> >>> The regex pattern I am looking for appears in other lines because
>  there is
> >>> a description field that lists "related parts."  The one
> consistency
>  I
> >>> have
> >>> is that the pattern I am comparing to should be looking only at
>  column 1
> >>> of
> >>> tdg2Text
> >>>
> >>> I know this is not accurate but is there a way to say something
> like
>  this:
> >>> filter lines of ITEM1 of tdg2Text with regex pattern tRegexp into
>  tTemp
> >>>
> >>> Trying to limit the filter based on the first item in that line VS
>  the
> >>> entire line.
> >>>
> >>> Ideas?
> >>>
> >>> Thank you,
> >>> SKIP
> >>>
> >>>
> >>>
> >>> On Wed, Jul 9, 2014 at 2:02 PM, Bernard Devlin  >
> >>> wrote:
> >>>
> >>> I haven't use the filter by regex pattern, but perhaps try putting
>  the
>  "End
>  of Line" marker ($) at the end of your regex.  You may need the
>  "Start of
>  Line" marker too.
> 
>  ^.*cat.*mat$
> 
>  ^ is the Start of Line marker.
> 
>  Bernard
> 
> 
>  On Wed, Jul 9, 2014 at 4:28 PM, Magicgate Software - Skip Kimpel <
>  s...@magicgate.com> wrote:
> 
>  Hello LC'ers
> >
> > I am comparing two lists using the following:
> >   filter lines of tdg2Text with regex pattern tRegexp into
>  tTemp
> >
> > The problem I have is that this is pulling up multiple lines in
>  tdg2Text
> > when if fact I need to filter out a specific line.  tRegExp
> should
>  MATCH
> > (exactly) item 1 of tdg2Text.
> >
> > Make sense?
> >
> > SKIP
>
> --
> Charles E. Buchwald
> CEO/D

Re: formattedWidth

2014-07-10 Thread Peter Haworth
Oh yes, plus ignoring hidden controls

Pete
lcSQL Software 
Home of lcStackBrowser  and
SQLiteAdmin 


On Thu, Jul 10, 2014 at 12:05 PM, Peter Haworth  wrote:

> Thanks Richmond, that's essentially what I'm doing except I use the
> rectangle of the stack instead of the height and width so the stack
> position doesn't change.
>
> Pete
> lcSQL Software 
> Home of lcStackBrowser  and
> SQLiteAdmin 
>
>
> On Thu, Jul 10, 2014 at 11:10 AM, Richmond 
> wrote:
>
>> On 10/07/14 20:07, Peter Haworth wrote:
>>
>>> 
>>>
>>>
>>> Is there some other property that can be used to set the width of a stack
>>> to something that really does include all the objects on it?
>>>
>>>
>>>  
>>
>> My extremely primitive recipe to do just that is here:
>>
>> http://forums.livecode.com/viewtopic.php?f=7&t=21023
>>
>> Richmond.
>>
>>
>> ___
>> 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-livecode
>>
>
>
___
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-livecode


Re: formattedWidth

2014-07-10 Thread Peter Haworth
Thanks Scott.  formattedRect doesn't quite work on its own because it
positions the stack at the top left of the screen. However you put me on
the right track because I can use the measurements in it to set the correct
rectangle.

Pete
lcSQL Software 
Home of lcStackBrowser  and
SQLiteAdmin 


On Thu, Jul 10, 2014 at 12:23 PM, Scott Rossi 
wrote:

> I think you meant the formattedRect property, not formattedWidth.  If you
> check the formattedRect property, you should be able to get right/bottom
> positions you want without looping through the card objects.
>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
>
>
>
>
> On 7/10/14 12:02 PM, "Peter Haworth"  wrote:
>
> >Hi SCott,
> >Yes, I'm currently doing what you suggest by looking at all the controls
> >on
> >the card.
> >
> >What I don't understand is why the formattedWidth of a card doesn't return
> >what's described in the dictionary.  It appears to simply return the width
> >of the widest control on the card when what it should do is return the
> >right of the rightmost control.  Seems like a bug to me but that property
> >has been around for a long time so not sure what it hasn't come up before.
> >
> >
> >Pete
> >lcSQL Software 
> >Home of lcStackBrowser  and
> >SQLiteAdmin 
> >
> >
> >On Thu, Jul 10, 2014 at 10:35 AM, Scott Rossi 
> >wrote:
> >
> >> I'm still not quite clear on what you're trying to accomplish.  If you
> >> want to size a stack to the rect of all visible elements on a card, you
> >> need to check the extents of those objects -- the right-most and
> >> bottom-most edges -- not the space they occupy with formattedWidth or
> >> height.
> >>
> >> If I understand what you're looking to do, loop through your card
> >>objects,
> >> grab the greatest right and bottom extents, and that should give you the
> >> dimensions to use for your stack.
> >>
> >> Regards,
> >>
> >> Scott Rossi
> >> Creative Director
> >> Tactile Media, UX/UI Design
> >>
> >>
> >>
> >>
> >> On 7/10/14 10:07 AM, "Peter Haworth"  wrote:
> >>
> >> >I recently posted about how to adjust the size of different cards
> >>within a
> >> >stack and part of the solution I tried was using the formattedWidth and
> >> >formattedHeight properties (actually the effective versions of them).
> >> >
> >> >I'm now seeing that the formattedWidth (and probably formattedHeight)
> >> >return very unexpected values.
> >> >
> >> >The dictionary says it returns the width of a rectangle that contains
> >>all
> >> >objects in the card whose visible property is true but I'm not seeing
> >> >that.
> >> >
> >> >Make yourself a stack with a field on it with it's left edge in the
> >>middle
> >> >of the stack and it's right edge somewhere off the right edge of the
> >> >stack.
> >> >
> >> >Put a button on the card with the following code:
> >> >
> >> >get the rectangle of this stack
> >> >put item 1 of it + the formattedWidth of this card into item 3 of it
> >> >set the rectangle of this stack to it
> >> >
> >> >When you click the button, the stack will resize to the width of the
> >> >field,
> >> >in other words, the right edge of the field will still be off the right
> >> >edge of the stack.  The only way this works correctly is if the field's
> >> >left edge is at the left edge of the stack.
> >> >
> >> >I'm sure this is way formattedWIdth has always worked so it's not
> >>likely
> >> >to
> >> >be changed but it seems to be a not very useful implementation to me.
> >> >
> >> >Is there some other property that can be used to set the width of a
> >>stack
> >> >to something that really does include all the objects on it?
> >> >
> >> >Pete
> >> >lcSQL Software 
> >> >Home of lcStackBrowser  and
> >> >SQLiteAdmin 
> >> >___
> >> >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-livecode
> >>
> >>
> >>
> >> ___
> >> 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-livecode
> >>
> >___
> >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-livecode
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit

Re: formattedWidth

2014-07-10 Thread Peter Haworth
Yes, I think the problem is with the dictionary entry for formattedWidth
since it claims the formattedWidth of a card is the rectangle that contains
all its visible objects, which is not true.

Pete
lcSQL Software 
Home of lcStackBrowser  and
SQLiteAdmin 


On Thu, Jul 10, 2014 at 12:27 PM, Scott Rossi 
wrote:

> FormattedWidth and height are purely width and height measurements.  They
> don't provide object any position information.
>
> For object positions, use either the rect or formattedRect (cards/groups)
> properties.
>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
>
>
>
>
> On 7/10/14 12:12 PM, "Richmond"  wrote:
>
> >I cannot for the life of me understand why the formattedWidth of the
> >card does not correspond
> >to item 1 of the loc of the 'furthest West' control, or its LEFT.
>
>
>
> ___
> 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-livecode
>
___
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-livecode


Re: formattedWidth

2014-07-10 Thread Scott Rossi
Actually, the dictionary entry is correct.  The property gets the width of
a rectangle that encompasses all visible objects, not the rect of the
objects.

Horse = beaten yet?  :-)

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 7/10/14 2:49 PM, "Peter Haworth"  wrote:

>Yes, I think the problem is with the dictionary entry for formattedWidth
>since it claims the formattedWidth of a card is the rectangle that
>contains
>all its visible objects, which is not true.
>
>Pete
>lcSQL Software 
>Home of lcStackBrowser  and
>SQLiteAdmin 
>
>
>On Thu, Jul 10, 2014 at 12:27 PM, Scott Rossi 
>wrote:
>
>> FormattedWidth and height are purely width and height measurements.
>>They
>> don't provide object any position information.
>>
>> For object positions, use either the rect or formattedRect
>>(cards/groups)
>> properties.
>>
>> Regards,
>>
>> Scott Rossi
>> Creative Director
>> Tactile Media, UX/UI Design
>>
>>
>>
>>
>> On 7/10/14 12:12 PM, "Richmond"  wrote:
>>
>> >I cannot for the life of me understand why the formattedWidth of the
>> >card does not correspond
>> >to item 1 of the loc of the 'furthest West' control, or its LEFT.
>>
>>
>>
>> ___
>> 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-livecode
>>
>___
>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-livecode



___
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-livecode


Re: formattedWidth

2014-07-10 Thread J. Landman Gay
So it's "all the visible parts of all objects". If some of an object is 
offscreen, that part isn't visible.


Beaten but not yet dead. ;)

On 7/10/2014, 5:52 PM, Scott Rossi wrote:

Actually, the dictionary entry is correct.  The property gets the width of
a rectangle that encompasses all visible objects, not the rect of the
objects.

Horse = beaten yet?  :-)

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 7/10/14 2:49 PM, "Peter Haworth"  wrote:


Yes, I think the problem is with the dictionary entry for formattedWidth
since it claims the formattedWidth of a card is the rectangle that
contains
all its visible objects, which is not true.

Pete
lcSQL Software 
Home of lcStackBrowser  and
SQLiteAdmin 


On Thu, Jul 10, 2014 at 12:27 PM, Scott Rossi 
wrote:


FormattedWidth and height are purely width and height measurements.
They
don't provide object any position information.

For object positions, use either the rect or formattedRect
(cards/groups)
properties.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 7/10/14 12:12 PM, "Richmond"  wrote:


I cannot for the life of me understand why the formattedWidth of the
card does not correspond
to item 1 of the loc of the 'furthest West' control, or its LEFT.




___
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-livecode


___
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-livecode




___
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-livecode




--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
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-livecode


Re: Conflicting paths

2014-07-10 Thread Paul Hibbert
Richmond,

Maybe you could use Bernd's stack to trace an oval image.

   Link from a previous post…

   http://forums.runrev.com/phpBB2/viewtopic.php?t=19040&p=96086#p96086

Paul


On 2014-07-10, at 10:43 AM, Richmond  wrote:

> I have a wobbly hand: or wobbly enough that I cannot draw
> an oval graphic to use as a path in a stack that doesn't look
> horrible.
> 
> Does anybody have any tips on how to make an oval path with points
> 
> [that means, before you all rush to point something out, that
> the oval object is no use at all]
> 
> that doesn't look like it has been drawn by a middle-aged dipsomaniac?
> 
> Richmond.
> 
> ___
> 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-livecode


___
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-livecode


Re: Conflicting paths

2014-07-10 Thread J. Landman Gay

On 7/10/2014, 12:43 PM, Richmond wrote:

I have a wobbly hand: or wobbly enough that I cannot draw
an oval graphic to use as a path in a stack that doesn't look
horrible.

Does anybody have any tips on how to make an oval path with points

[that means, before you all rush to point something out, that
the oval object is no use at all]

that doesn't look like it has been drawn by a middle-aged dipsomaniac?


Mark Wieder recently added points to the standard graphic objects. But 
until that gets into the engine, I can't think of an easy way to create 
them.


I suppose you could draw out an oval with a 3 or 4 pixel line width, and 
then write a little script to record the mouseloc when you hit the 
return key, or something similar. That would allow you to carefully 
position the mouse before recording each loc. Then with some editing you 
could use that list as the point list.


It's not exactly how I'd want to spend my time though.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
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-livecode


Dragging an object

2014-07-10 Thread Peter Bogdanoff
Hi,

I want to drag an object around (a group), restricting its Y coordinate (set to 
be a property, “yLocation"). I’m using this script inside the object:

on mouseMove
   if the mouse is down then
  set the loc of me to (item 1 of the mouseLoc,the yLocation of me)
   end if
end mouseMove

However, after moving it sideways, when I click on it again to move it, every 
time it jumps back so that its X coordinate is zero relative to the mouseLoc.

This behavior would be fine for a button, but I’m dragging a 3000-pixel-wide 
group.

How can I drag it by clicking on one side of this group?

I tried using the grab command, but I couldn’t seem to be able to restrict the 
Y coordinate with that.

Peter
UCLA

___
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-livecode


Re: Dragging an object

2014-07-10 Thread Roger Eller
This really old info from the archives might help.

https://www.mail-archive.com/use-revolution%40lists.runrev.com/msg10273.html
 On Jul 10, 2014 8:24 PM, "Peter Bogdanoff"  wrote:

> Hi,
>
> I want to drag an object around (a group), restricting its Y coordinate
> (set to be a property, “yLocation"). I’m using this script inside the
> object:
>
> on mouseMove
>if the mouse is down then
>   set the loc of me to (item 1 of the mouseLoc,the yLocation of me)
>end if
> end mouseMove
>
> However, after moving it sideways, when I click on it again to move it,
> every time it jumps back so that its X coordinate is zero relative to the
> mouseLoc.
>
> This behavior would be fine for a button, but I’m dragging a
> 3000-pixel-wide group.
>
> How can I drag it by clicking on one side of this group?
>
> I tried using the grab command, but I couldn’t seem to be able to restrict
> the Y coordinate with that.
>
> Peter
> UCLA
>
> ___
> 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-livecode
>
___
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-livecode

Re: Conflicting paths

2014-07-10 Thread Walt Brown
Here's a quickie stack I wrote after reading Richmond's email, which
creates a set of points in an oval and then sends a planet around. The oval
can be set to width (k), height (h), and angle (theta). Written in 5.5.5.
Embedded in it is a stack script which contains the angled ellipse
calculation x = h + (a*cos(t) * cos(theta)) - (b*sin(t) * sin(theta)), y =
k + (a*cos(t) * sin(theta)) + (b*sin(t) * cos(theta)). Play.


On Thu, Jul 10, 2014 at 8:10 PM, J. Landman Gay 
wrote:

> On 7/10/2014, 12:43 PM, Richmond wrote:
>
>> I have a wobbly hand: or wobbly enough that I cannot draw
>> an oval graphic to use as a path in a stack that doesn't look
>> horrible.
>>
>> Does anybody have any tips on how to make an oval path with points
>>
>> [that means, before you all rush to point something out, that
>> the oval object is no use at all]
>>
>> that doesn't look like it has been drawn by a middle-aged dipsomaniac?
>>
>
> Mark Wieder recently added points to the standard graphic objects. But
> until that gets into the engine, I can't think of an easy way to create
> them.
>
> I suppose you could draw out an oval with a 3 or 4 pixel line width, and
> then write a little script to record the mouseloc when you hit the return
> key, or something similar. That would allow you to carefully position the
> mouse before recording each loc. Then with some editing you could use that
> list as the point list.
>
> It's not exactly how I'd want to spend my time though.
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
>
> ___
> 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-livecode
>
___
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-livecode


Re: formattedWidth

2014-07-10 Thread Peter Haworth
OK, I surrender!  I think I now understand  my confusion.  The
formattedWidth of a card is measured from the left edge of the leftmost
control to the right edge of the rightmost control. But the distance from
the left edge of the card to the leftmost control isn't included so using
formattedwidth to size the card will never work unless the leftmost control
is at the left edge of the card.

I have it working now by using the formattedrect property as the basis for
getting the width measurement I need.

Pete
lcSQL Software
On Jul 10, 2014 5:04 PM, "J. Landman Gay"  wrote:

> So it's "all the visible parts of all objects". If some of an object is
> offscreen, that part isn't visible.
>
> Beaten but not yet dead. ;)
>
> On 7/10/2014, 5:52 PM, Scott Rossi wrote:
>
>> Actually, the dictionary entry is correct.  The property gets the width of
>> a rectangle that encompasses all visible objects, not the rect of the
>> objects.
>>
>> Horse = beaten yet?  :-)
>>
>> Regards,
>>
>> Scott Rossi
>> Creative Director
>> Tactile Media, UX/UI Design
>>
>>
>>
>>
>> On 7/10/14 2:49 PM, "Peter Haworth"  wrote:
>>
>>  Yes, I think the problem is with the dictionary entry for formattedWidth
>>> since it claims the formattedWidth of a card is the rectangle that
>>> contains
>>> all its visible objects, which is not true.
>>>
>>> Pete
>>> lcSQL Software 
>>> Home of lcStackBrowser  and
>>> SQLiteAdmin 
>>>
>>>
>>> On Thu, Jul 10, 2014 at 12:27 PM, Scott Rossi 
>>> wrote:
>>>
>>>  FormattedWidth and height are purely width and height measurements.
 They
 don't provide object any position information.

 For object positions, use either the rect or formattedRect
 (cards/groups)
 properties.

 Regards,

 Scott Rossi
 Creative Director
 Tactile Media, UX/UI Design




 On 7/10/14 12:12 PM, "Richmond"  wrote:

  I cannot for the life of me understand why the formattedWidth of the
> card does not correspond
> to item 1 of the loc of the 'furthest West' control, or its LEFT.
>



 ___
 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-livecode

  ___
>>> 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-livecode
>>>
>>
>>
>>
>> ___
>> 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-livecode
>>
>>
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
> ___
> 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-livecode
>
___
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-livecode


Re: Dragging an object

2014-07-10 Thread Jim Hurley
> 
> Message: 19
> Date: Thu, 10 Jul 2014 17:24:16 -0700
> From: Peter Bogdanoff 
> To: How to use LiveCode 
> Subject: Dragging an object
> Message-ID: <14789523-9af4-4531-83cf-ff60644d1...@me.com>
> Content-Type: text/plain; charset=windows-1252
> 
> Hi,
> 
> I want to drag an object around (a group), restricting its Y coordinate (set 
> to be a property, ?yLocation"). I?m using this script inside the object:
> 
> on mouseMove
>   if the mouse is down then
>  set the loc of me to (item 1 of the mouseLoc,the yLocation of me)
>   end if
> end mouseMove
> 
> However, after moving it sideways, when I click on it again to move it, every 
> time it jumps back so that its X coordinate is zero relative to the mouseLoc.
> 
> This behavior would be fine for a button, but I?m dragging a 3000-pixel-wide 
> group.
> 
> How can I drag it by clicking on one side of this group?
> 
> I tried using the grab command, but I couldn?t seem to be able to restrict 
> the Y coordinate with that.
> 
> Peter
> UCLA

Hi Peter,

Greetings from UCD (retired).

The mouseMove needs to recognize the initial separation between the mouse at 
mouseDown the x loc of the object being moved at mouseDown. I call that 
distance dx. 
The following will move the button along the initial y coordinate of the button 
and the x loc of the mouse plus the initial separation dx  

local y0 ,myName, dx

on mouseDown
  put the short name of me into myName
  put the loc of me into p0
  put item 2 of p0  into y0
  put the mouseloc into p1
  put item 1 of p1 into x1
  put  item 1 of p0 into x0
  put x0 - x1 into  dx --The distance between the button loc and the mouse loc
end mouseDown

on mouseMove x,y
   if myName is not empty then
  set the loc of me to x+ dx,y0
   end if
end mouseMove

on mouseUp
  put empty into myName
end mouseUp

on mouseEnter
   put "" into myname
end mouseEnter


___
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-livecode


Re: Dragging an object

2014-07-10 Thread Peter Bogdanoff
That doesn’t seem to be good for my immediate challenge—I’m able to restrict 
the motion to horizontal OK. It’s getting the control to move smoothly no 
matter where on it you click.

On Jul 10, 2014, at 5:54 PM, Roger Eller  wrote:

> 
> On Jul 10, 2014 8:24 PM, "Peter Bogdanoff"  wrote:
> 
>> Hi,
>> 
>> I want to drag an object around (a group), restricting its Y coordinate
>> (set to be a property, “yLocation"). I’m using this script inside the
>> object:
>> 
>> on mouseMove
>>   if the mouse is down then
>>  set the loc of me to (item 1 of the mouseLoc,the yLocation of me)
>>   end if
>> end mouseMove
>> 
>> However, after moving it sideways, when I click on it again to move it,
>> every time it jumps back so that its X coordinate is zero relative to the
>> mouseLoc.
>> 
>> This behavior would be fine for a button, but I’m dragging a
>> 3000-pixel-wide group.
>> 
>> How can I drag it by clicking on one side of this group?
>> 
>> I tried using the grab command, but I couldn’t seem to be able to restrict
>> the Y coordinate with that.
>> 
>> Peter
>> UCLA
>> 
>> ___

___
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-livecode


Re: Dragging an object

2014-07-10 Thread Peter Bogdanoff
Thanks, I’ll try it.

pb

On Jul 10, 2014, at 7:01 PM, Jim Hurley  wrote:

>> 
>> Message: 19
>> Date: Thu, 10 Jul 2014 17:24:16 -0700
>> From: Peter Bogdanoff 
>> To: How to use LiveCode 
>> Subject: Dragging an object
>> Message-ID: <14789523-9af4-4531-83cf-ff60644d1...@me.com>
>> Content-Type: text/plain; charset=windows-1252
>> 
>> Hi,
>> 
>> I want to drag an object around (a group), restricting its Y coordinate (set 
>> to be a property, ?yLocation"). I?m using this script inside the object:
>> 
>> on mouseMove
>>  if the mouse is down then
>> set the loc of me to (item 1 of the mouseLoc,the yLocation of me)
>>  end if
>> end mouseMove
>> 
>> However, after moving it sideways, when I click on it again to move it, 
>> every time it jumps back so that its X coordinate is zero relative to the 
>> mouseLoc.
>> 
>> This behavior would be fine for a button, but I?m dragging a 3000-pixel-wide 
>> group.
>> 
>> How can I drag it by clicking on one side of this group?
>> 
>> I tried using the grab command, but I couldn?t seem to be able to restrict 
>> the Y coordinate with that.
>> 
>> Peter
>> UCLA
> 
> Hi Peter,
> 
> Greetings from UCD (retired).
> 
> The mouseMove needs to recognize the initial separation between the mouse at 
> mouseDown the x loc of the object being moved at mouseDown. I call that 
> distance dx. 
> The following will move the button along the initial y coordinate of the 
> button and the x loc of the mouse plus the initial separation dx  
> 
> local y0 ,myName, dx
> 
> on mouseDown
>  put the short name of me into myName
>  put the loc of me into p0
>  put item 2 of p0  into y0
>  put the mouseloc into p1
>  put item 1 of p1 into x1
>  put  item 1 of p0 into x0
>  put x0 - x1 into  dx --The distance between the button loc and the mouse loc
> end mouseDown
> 
> on mouseMove x,y
>   if myName is not empty then
>  set the loc of me to x+ dx,y0
>   end if
> end mouseMove
> 
> on mouseUp
>  put empty into myName
> end mouseUp
> 
> on mouseEnter
>   put "" into myname
> end mouseEnter
> 
> 
> ___
> 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-livecode


___
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-livecode


Re: Dragging an object

2014-07-10 Thread Peter Bogdanoff
YES!

I knew I had to get that separation figured out and applied, but the logic was 
stumping me. Thanks!

Peter

On Jul 10, 2014, at 7:01 PM, Jim Hurley  wrote:

>> 
>> Message: 19
>> Date: Thu, 10 Jul 2014 17:24:16 -0700
>> From: Peter Bogdanoff 
>> To: How to use LiveCode 
>> Subject: Dragging an object
>> Message-ID: <14789523-9af4-4531-83cf-ff60644d1...@me.com>
>> Content-Type: text/plain; charset=windows-1252
>> 
>> Hi,
>> 
>> I want to drag an object around (a group), restricting its Y coordinate (set 
>> to be a property, ?yLocation"). I?m using this script inside the object:
>> 
>> on mouseMove
>>  if the mouse is down then
>> set the loc of me to (item 1 of the mouseLoc,the yLocation of me)
>>  end if
>> end mouseMove
>> 
>> However, after moving it sideways, when I click on it again to move it, 
>> every time it jumps back so that its X coordinate is zero relative to the 
>> mouseLoc.
>> 
>> This behavior would be fine for a button, but I?m dragging a 3000-pixel-wide 
>> group.
>> 
>> How can I drag it by clicking on one side of this group?
>> 
>> I tried using the grab command, but I couldn?t seem to be able to restrict 
>> the Y coordinate with that.
>> 
>> Peter
>> UCLA
> 
> Hi Peter,
> 
> Greetings from UCD (retired).
> 
> The mouseMove needs to recognize the initial separation between the mouse at 
> mouseDown the x loc of the object being moved at mouseDown. I call that 
> distance dx. 
> The following will move the button along the initial y coordinate of the 
> button and the x loc of the mouse plus the initial separation dx  
> 
> local y0 ,myName, dx
> 
> on mouseDown
>  put the short name of me into myName
>  put the loc of me into p0
>  put item 2 of p0  into y0
>  put the mouseloc into p1
>  put item 1 of p1 into x1
>  put  item 1 of p0 into x0
>  put x0 - x1 into  dx --The distance between the button loc and the mouse loc
> end mouseDown
> 
> on mouseMove x,y
>   if myName is not empty then
>  set the loc of me to x+ dx,y0
>   end if
> end mouseMove
> 
> on mouseUp
>  put empty into myName
> end mouseUp
> 
> on mouseEnter
>   put "" into myname
> end mouseEnter
> 
> 
> ___
> 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-livecode


___
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-livecode


Re: formattedWidth

2014-07-10 Thread Dr. Hawkins
On Thu, Jul 10, 2014 at 6:32 PM, Peter Haworth  wrote:

> But the distance from
> the left edge of the card to the leftmost control isn't included so using
> formattedwidth to size the card will never work unless the leftmost control
> is at the left edge of the card.
>

It will also not work if the *card* in question isn't open.  I'm not sure
where in the preopencard/opencard sequence this becomes effective.


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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-livecode


Re: Conflicting paths

2014-07-10 Thread Mark Wieder
Jacque-

Thursday, July 10, 2014, 5:10:40 PM, you wrote:

> Mark Wieder recently added points to the standard graphic objects. But
> until that gets into the engine, I can't think of an easy way to create
> them.

That should be in the next release of LC 6.7. Ovals aren't included
yet because I hadn't figured out how to deal with them at that point.
If my latest pull request can get accepted before the next release
then you'll be able to use the effective points of ovals as well.

-- 
-Mark Wieder
 ahsoftw...@gmail.com

This communication may be unlawfully collected and stored by the National 
Security Agency (NSA) in secret. The parties to this email do not 
consent to the retrieving or storing of this communication and any 
related metadata, as well as printing, copying, re-transmitting, 
disseminating, or otherwise using it. If you believe you have received 
this communication in error, please delete it immediately.


___
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-livecode


Re: Dragging an object

2014-07-10 Thread Richmond

On 11/07/14 03:24, Peter Bogdanoff wrote:





I tried using the grab command, but I couldn’t seem to be able to restrict the 
Y coordinate with that.





on mouseDown
   grab me
end mouseDown

on mouseUp
set the moveSpeed to 65000
   put item 2 of the loc of me into LCK
   move me to ZZZ, LCK
end mouseUp

where 'ZZZ' is the fixed lateral location.

I've set the moveSpeed way up high so the movement is not seen.

Richmond.

___
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-livecode


Re: Conflicting paths

2014-07-10 Thread Richmond

On 11/07/14 04:08, Walt Brown wrote:

Here's a quickie stack I wrote after reading Richmond's email, which
creates a set of points in an oval and then sends a planet around. The oval
can be set to width (k), height (h), and angle (theta). Written in 5.5.5.
Embedded in it is a stack script which contains the angled ellipse
calculation x = h + (a*cos(t) * cos(theta)) - (b*sin(t) * sin(theta)), y =
k + (a*cos(t) * sin(theta)) + (b*sin(t) * cos(theta)). Play.


Jolly nice; especially if we had the link to download the stack :/

Richmond.


___
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-livecode


Re: Conflicting paths

2014-07-10 Thread Walt Brown
Sorry, I wasn't aware that attachments didn't follow thru. See if this
works:

https://www.dropbox.com/s/xxdfiuvzlblweoe/wbOvalOrbiter.zip


On Fri, Jul 11, 2014 at 1:15 AM, Richmond 
wrote:

> On 11/07/14 04:08, Walt Brown wrote:
>
>> Here's a quickie stack I wrote after reading Richmond's email, which
>> creates a set of points in an oval and then sends a planet around. The
>> oval
>> can be set to width (k), height (h), and angle (theta). Written in 5.5.5.
>> Embedded in it is a stack script which contains the angled ellipse
>> calculation x = h + (a*cos(t) * cos(theta)) - (b*sin(t) * sin(theta)), y =
>> k + (a*cos(t) * sin(theta)) + (b*sin(t) * cos(theta)). Play.
>>
>
> Jolly nice; especially if we had the link to download the stack :/
>
> Richmond.
>
>
>
> ___
> 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-livecode
>
___
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-livecode


Re: Conflicting paths

2014-07-10 Thread Scott Morrow
Nice!

—
Scott Morrow

On Jul 10, 2014, at 10:27 PM, Walt Brown  wrote:

> Sorry, I wasn't aware that attachments didn't follow thru. See if this
> works:
> 
> https://www.dropbox.com/s/xxdfiuvzlblweoe/wbOvalOrbiter.zip
> 
> 
> On Fri, Jul 11, 2014 at 1:15 AM, Richmond 
> wrote:
> 
>> On 11/07/14 04:08, Walt Brown wrote:
>> 
>>> Here's a quickie stack I wrote after reading Richmond's email, which
>>> creates a set of points in an oval and then sends a planet around. The
>>> oval
>>> can be set to width (k), height (h), and angle (theta). Written in 5.5.5.
>>> Embedded in it is a stack script which contains the angled ellipse
>>> calculation x = h + (a*cos(t) * cos(theta)) - (b*sin(t) * sin(theta)), y =
>>> k + (a*cos(t) * sin(theta)) + (b*sin(t) * cos(theta)). Play.
>>> 
>> 
>> Jolly nice; especially if we had the link to download the stack :/
>> 
>> Richmond.
>> 
>> 
>> 
>> ___
>> 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-livecode
>> 
> ___
> 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-livecode


___
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-livecode


Re: Conflicting paths

2014-07-10 Thread Mike Bonner
This is similar to walts, but doesn't handle angles.  It sets the points of
a preexisting line grc.  Just hated not to post it after figuring it out,
but stick with walts.

Heres the quicky code anyway..

local sxOffset,syOffset,sSegments,sxradius,syRadius
constant totalRadians=6.283185
on mouseUp
   put 360 into sSegments -- segments desired
   put 50 into sxRadius x radius
   put 30 into syRadius y radius
   put item 1 of the loc of this card into sxOffset -- just chooses the
center of the card as the center of the oval
   put item 2 of the loc of this card into syOffset
   put totalRadians / sSegments into tFactor -- the factor in radians based
on the number of segments desired
   repeat with i = 1 to sSegments + 1
  put sxOffset + sxradius * cos(i*tFactor) & comma & syoffset +
syRadius * sin(i*tfactor) & cr after tpointslist
   end repeat
   delete the last char of tPointslist
   set the points of grc "testgrc" to tPointslist
end mouseUp


On Thu, Jul 10, 2014 at 11:49 PM, Scott Morrow  wrote:

> Nice!
>
> —
> Scott Morrow
>
> On Jul 10, 2014, at 10:27 PM, Walt Brown  wrote:
>
> > Sorry, I wasn't aware that attachments didn't follow thru. See if this
> > works:
> >
> > https://www.dropbox.com/s/xxdfiuvzlblweoe/wbOvalOrbiter.zip
> >
> >
> > On Fri, Jul 11, 2014 at 1:15 AM, Richmond 
> > wrote:
> >
> >> On 11/07/14 04:08, Walt Brown wrote:
> >>
> >>> Here's a quickie stack I wrote after reading Richmond's email, which
> >>> creates a set of points in an oval and then sends a planet around. The
> >>> oval
> >>> can be set to width (k), height (h), and angle (theta). Written in
> 5.5.5.
> >>> Embedded in it is a stack script which contains the angled ellipse
> >>> calculation x = h + (a*cos(t) * cos(theta)) - (b*sin(t) * sin(theta)),
> y =
> >>> k + (a*cos(t) * sin(theta)) + (b*sin(t) * cos(theta)). Play.
> >>>
> >>
> >> Jolly nice; especially if we had the link to download the stack :/
> >>
> >> Richmond.
> >>
> >>
> >>
> >> ___
> >> 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-livecode
> >>
> > ___
> > 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-livecode
>
>
> ___
> 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-livecode
>
___
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-livecode

Re: Conflicting paths

2014-07-10 Thread Mike Bonner
oops, didn't put the -- on a couple of comments, but should be
decipherable. DOH


On Thu, Jul 10, 2014 at 11:54 PM, Mike Bonner  wrote:

> This is similar to walts, but doesn't handle angles.  It sets the points
> of a preexisting line grc.  Just hated not to post it after figuring it
> out, but stick with walts.
>
> Heres the quicky code anyway..
>
> local sxOffset,syOffset,sSegments,sxradius,syRadius
> constant totalRadians=6.283185
> on mouseUp
>put 360 into sSegments -- segments desired
>put 50 into sxRadius x radius
>put 30 into syRadius y radius
>put item 1 of the loc of this card into sxOffset -- just chooses the
> center of the card as the center of the oval
>put item 2 of the loc of this card into syOffset
>put totalRadians / sSegments into tFactor -- the factor in radians
> based on the number of segments desired
>repeat with i = 1 to sSegments + 1
>   put sxOffset + sxradius * cos(i*tFactor) & comma & syoffset +
> syRadius * sin(i*tfactor) & cr after tpointslist
>end repeat
>delete the last char of tPointslist
>set the points of grc "testgrc" to tPointslist
> end mouseUp
>
>
> On Thu, Jul 10, 2014 at 11:49 PM, Scott Morrow <
> sc...@elementarysoftware.com> wrote:
>
>> Nice!
>>
>> —
>> Scott Morrow
>>
>> On Jul 10, 2014, at 10:27 PM, Walt Brown 
>> wrote:
>>
>> > Sorry, I wasn't aware that attachments didn't follow thru. See if this
>> > works:
>> >
>> > https://www.dropbox.com/s/xxdfiuvzlblweoe/wbOvalOrbiter.zip
>> >
>> >
>> > On Fri, Jul 11, 2014 at 1:15 AM, Richmond 
>> > wrote:
>> >
>> >> On 11/07/14 04:08, Walt Brown wrote:
>> >>
>> >>> Here's a quickie stack I wrote after reading Richmond's email, which
>> >>> creates a set of points in an oval and then sends a planet around. The
>> >>> oval
>> >>> can be set to width (k), height (h), and angle (theta). Written in
>> 5.5.5.
>> >>> Embedded in it is a stack script which contains the angled ellipse
>> >>> calculation x = h + (a*cos(t) * cos(theta)) - (b*sin(t) *
>> sin(theta)), y =
>> >>> k + (a*cos(t) * sin(theta)) + (b*sin(t) * cos(theta)). Play.
>> >>>
>> >>
>> >> Jolly nice; especially if we had the link to download the stack :/
>> >>
>> >> Richmond.
>> >>
>> >>
>> >>
>> >> ___
>> >> 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-livecode
>> >>
>> > ___
>> > 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-livecode
>>
>>
>> ___
>> 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-livecode
>>
>
>
___
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-livecode