Re: Groups do not receive mouseEnter messages?

2019-06-24 Thread Curry Kenworthy via use-livecode



Paul:

> 2 opaque groups with show borders [...]
> Neither group seems to receive the mouseEnter messages.

I believe this is consistent with LC 6. Makes good sense for transparent 
groups. A good case could be made either way for opaque ones.


(Card mousemove is another way to handle the tool change reliably 
without adding more controls.)


Best wishes,

Curry K.

___
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: Changing array key text

2019-06-24 Thread J. Landman Gay via use-livecode
I love when you guys talk geek to me.  "Tell me more about my 
arrays."


https://youtu.be/dEaFFZpfxLU

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On June 24, 2019 9:44:55 PM Mark Wieder via use-livecode 
 wrote:



On 6/24/19 7:18 PM, Brian Milby via use-livecode wrote:
My guess is that it has to do with the copy on write property of arrays.  
If you used your method it may force an actual duplication.  The existing 
method just passes a pointer effectively.  I could be totally wrong though.


Dunno. Possibly. But passing a pointer and deleting the referenced
object seems dangerous without a lot of overhead of reference counting
and deferred deletion.

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


Re: Changing array key text

2019-06-24 Thread Mark Wieder via use-livecode

On 6/24/19 7:18 PM, Brian Milby via use-livecode wrote:

My guess is that it has to do with the copy on write property of arrays.  If 
you used your method it may force an actual duplication.  The existing method 
just passes a pointer effectively.  I could be totally wrong though.


Dunno. Possibly. But passing a pointer and deleting the referenced 
object seems dangerous without a lot of overhead of reference counting 
and deferred deletion.


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

Re: Changing array key text

2019-06-24 Thread Brian Milby via use-livecode
My guess is that it has to do with the copy on write property of arrays.  If 
you used your method it may force an actual duplication.  The existing method 
just passes a pointer effectively.  I could be totally wrong though.

Thanks,
Brian
On Jun 24, 2019, 10:11 PM -0400, Mark Wieder via use-livecode 
, wrote:
> On 6/24/19 7:00 PM, Brian Milby via use-livecode wrote:
> > Close, here's the actual code (part of setArrayKeyOnPath):
> >
> > put xArray[item 1 of pPath] into tSubArray
> > delete variable xArray[item 1 of pPath]
> > put tSubArray into xArray[pKey]
>
> Interesting. Wouldn't it be faster to do
>
> put xArray[item 1 of pPath] into xArray[pKey]
> delete variable xArray[item 1 of pPath]
>
> i.e., why the extra copy?
>
> --
> 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

Re: Changing array key text

2019-06-24 Thread Mark Wieder via use-livecode

On 6/24/19 7:00 PM, Brian Milby via use-livecode wrote:

Close, here's the actual code (part of setArrayKeyOnPath):

   put xArray[item 1 of pPath] into tSubArray
   delete variable xArray[item 1 of pPath]
   put tSubArray into xArray[pKey]


Interesting. Wouldn't it be faster to do

put xArray[item 1 of pPath] into xArray[pKey]
delete variable xArray[item 1 of pPath]

i.e., why the extra copy?

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


Re: Changing array key text

2019-06-24 Thread Brian Milby via use-livecode
Close, here's the actual code (part of setArrayKeyOnPath):

  put xArray[item 1 of pPath] into tSubArray
  delete variable xArray[item 1 of pPath]
  put tSubArray into xArray[pKey]

I didn't specify the first step in my original answer.  I only knew about
this because I had been looking at that code a while back trying to change
some things about how the PI worked for custom properties.  I think a
couple of improvements made it in.

On Mon, Jun 24, 2019 at 8:36 PM Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 6/24/19 12:37 PM, Brian Milby via use-livecode wrote:
> > I’m pretty sure the PI deletes the old key and creates a new key with
> the existing value.
>
> I'm pretty sure (in this post-facts world I haven't actually looked)
> it's the other way around: copy the existing contents into the new key,
> *then* delete the old key.
>
> --
>   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

Re: Groups do not receive mouseEnter messages?

2019-06-24 Thread Paul Dupuis via use-livecode

On 6/24/2019 8:24 PM, dunbarx--- via use-livecode wrote:

Confirmed here.
I have never really tried any of the things you mentioned, but no messages at 
all are sent to the group I just made.  Interestingly, and consistent so far, 
double clicking within the group boundary, but not in any child control, opens 
the inspector for the card.
So although the dictionary talks about many properties of groups, and states that it is a 
control in its own right, it does not seem to have much body outside of its children. 
This even though one can make the group red as a beet. The "object" certainly 
exists, and has a multitude of properties. It just doesn't seem to be quite there.
Craig



Thanks for the confirmation.

However, what I'd really like is someone from the mothership to chime in?

I am aware that the Dictionary Entry for the group object does not list 
any of the mouse events (mouseEnter, mouseLeave, mouseWithin, mouseDown, 
mouseUp, etc. etc.), but I assumed this was for saving space in the 
dictionary entry?


___
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: Changing array key text

2019-06-24 Thread Mark Wieder via use-livecode

On 6/24/19 12:37 PM, Brian Milby via use-livecode wrote:

I’m pretty sure the PI deletes the old key and creates a new key with the 
existing value.


I'm pretty sure (in this post-facts world I haven't actually looked) 
it's the other way around: copy the existing contents into the new key, 
*then* delete the old key.


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

Re: Groups do not receive mouseEnter messages?

2019-06-24 Thread dunbarx--- via use-livecode
Confirmed here.
I have never really tried any of the things you mentioned, but no messages at 
all are sent to the group I just made.  Interestingly, and consistent so far, 
double clicking within the group boundary, but not in any child control, opens 
the inspector for the card.
So although the dictionary talks about many properties of groups, and states 
that it is a control in its own right, it does not seem to have much body 
outside of its children. This even though one can make the group red as a beet. 
The "object" certainly exists, and has a multitude of properties. It just 
doesn't seem to be quite there.
Craig


-Original Message-
From: Paul Dupuis via use-livecode 
To: How LiveCode 
Cc: Paul Dupuis 
Sent: Mon, Jun 24, 2019 7:28 pm
Subject: Groups do not receive mouseEnter messages?

In LC9.0.5rc1 under Windows, I have a test stack with 2 opaque groups 
with show borders  - one covering the top half of the card and one 
covering the bottom half of the card. In side the top group are a couple 
buttons with plenty of white space around them and inside the bottom 
group are a couple of graphic objects with plenty of white space around 
them.

The buttons and graphics have no scripts (currently). Each group has an 
"on mouseEnter" handler that "choose browse tool" for the top group and 
"choose pointer tool" for the bottom group.  The simple idea being when 
the user moves the mouse into the bottom group, the pointer tool is 
chosen so they could click on and resize the graphics. And when the 
mouse enter the top group, the browse tool is chosen so the user can 
click on the buttons without selecting them.

Neither group seems to receive the mouseEnter messages. Instead, the 
groups mouseEnter handler is executed for the top group only when the 
mouse is moved over one of the buttons (which has no mouseEnter handler 
and so the message is passed to the group) and likewise, the bottom 
groups mouseEnter handler is executed only when the mouse is moved over 
one of the graphics.

Do GROUPs not receive mouseEnter directly? This seems like a bug?Or is 
there some trick (property settings) for a group to receive mouseEnter 
messages?

___
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: Groups do not receive mouseEnter messages?

2019-06-24 Thread Terry Judd via use-livecode
Hi Paul - so, you could create a grc object the same size as the group, send it 
to the back and set its cantSelect property to true. That should give you the 
behaviour you want as well as preventing your user from selecting the 
'background' object in the group that switches to the pointer tool.

Terry...

On 25/6/19, 9:28 am, "use-livecode on behalf of Paul Dupuis via use-livecode" 
 wrote:

In LC9.0.5rc1 under Windows, I have a test stack with 2 opaque groups 
with show borders  - one covering the top half of the card and one 
covering the bottom half of the card. In side the top group are a couple 
buttons with plenty of white space around them and inside the bottom 
group are a couple of graphic objects with plenty of white space around 
them.

The buttons and graphics have no scripts (currently). Each group has an 
"on mouseEnter" handler that "choose browse tool" for the top group and 
"choose pointer tool" for the bottom group.  The simple idea being when 
the user moves the mouse into the bottom group, the pointer tool is 
chosen so they could click on and resize the graphics. And when the 
mouse enter the top group, the browse tool is chosen so the user can 
click on the buttons without selecting them.

Neither group seems to receive the mouseEnter messages. Instead, the 
groups mouseEnter handler is executed for the top group only when the 
mouse is moved over one of the buttons (which has no mouseEnter handler 
and so the message is passed to the group) and likewise, the bottom 
groups mouseEnter handler is executed only when the mouse is moved over 
one of the graphics.

Do GROUPs not receive mouseEnter directly? This seems like a bug?Or is 
there some trick (property settings) for a group to receive mouseEnter 
messages?

___
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

Groups do not receive mouseEnter messages?

2019-06-24 Thread Paul Dupuis via use-livecode
In LC9.0.5rc1 under Windows, I have a test stack with 2 opaque groups 
with show borders  - one covering the top half of the card and one 
covering the bottom half of the card. In side the top group are a couple 
buttons with plenty of white space around them and inside the bottom 
group are a couple of graphic objects with plenty of white space around 
them.


The buttons and graphics have no scripts (currently). Each group has an 
"on mouseEnter" handler that "choose browse tool" for the top group and 
"choose pointer tool" for the bottom group.  The simple idea being when 
the user moves the mouse into the bottom group, the pointer tool is 
chosen so they could click on and resize the graphics. And when the 
mouse enter the top group, the browse tool is chosen so the user can 
click on the buttons without selecting them.


Neither group seems to receive the mouseEnter messages. Instead, the 
groups mouseEnter handler is executed for the top group only when the 
mouse is moved over one of the buttons (which has no mouseEnter handler 
and so the message is passed to the group) and likewise, the bottom 
groups mouseEnter handler is executed only when the mouse is moved over 
one of the graphics.


Do GROUPs not receive mouseEnter directly? This seems like a bug?Or is 
there some trick (property settings) for a group to receive mouseEnter 
messages?


___
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: PDF Widget

2019-06-24 Thread Dr. Hawkins via use-livecode
> Paul provided,

> The same issue exists in the external OR in any printing based on printing 
> cards in LiveCode. If you want someone at higher than screen resolution (like 
> 2x or 4x, you sort of need to size the image or pDF at 2x or 4x off screen 
> (or locked screen) and take a export of the image and the size the image down 
> to 1x size.


I’m to even having success doing it that way. 


 I gave up on printing itself back with 5, when even fonts only rendered at 
screen resolution . . . I think that’s changed since then, but I”ve been 
exporting to pdf since then.  (besides, it’s pdfs that we use to file in 
bankruptcy, anyway).

 Monte mentioned,

> There’s a report open for this here to which I suggested the same workaround 
> Paul has https://quality.livecode.com/show_bug.cgi?id=22134 
>  
>  >
> 
> In order to resolve the report we need to add a way for a widget to draw 
> something different into a printing context than it does normally.


It was I that filed that bug .  .  . but I haven’t succeeded in exporting 
around it yet.  I have three uploaded files for comparison — iMac, retina 
MacBook, and scaleFactor 4 on the iMac.

It’s been a couple of decades since I played with postscript (and, much as they 
deny it, it *IS TOO* Forth!), so I don’t remember details.

My thinking, though, would be to use the postscript base of pdf and skip 
rendering entirely during export.  Instead, include the source pdf file in the 
output, and specify a region to contain "250,220 to 400,550 of page 4 of 
mydoc.pdf”

In my case, just resizing the pdf for resolution won’t get me very far—I will 
have several regions of pdfs included in an output  page, possibly but not 
always from the same page of the source, *and* a bunch of livecode fields.  
I’ve considered cloning the card and resizing every item, but livecode’s (and 
the fonts?) handling of margins and the like seems quite non-linear, so I 
wouldn’t get my carefully arranged output where I’ve meticulously placed and 
adjusted fields.

Other approaches I’ve contemplated:
1) turning the pdfs to quad density png or pg, and letting my developer 
maintenance machine scan my output cards pieces, stick make a graphic 
corresponding to each pdf, put that in the layer immediately above the pdf, and 
turn it invisible except when exporting.  (but relayerGroupedControls is kind 
of touchy . . .)
2) export to a pdf without any of the source pdfs (just my own fields), and 
write a build file with source pdf name, page, and region for each element, and 
run a shell script to build a postscript file using postscript versions of my 
source, and then turn that back to pdf.

— 
Richard E. Hawkins, Esq.
The Hawkins Law Firm
3430 E. Flamingo Rd.
Suite 232
Las Vegas, NV  89121
(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: PDF Widget

2019-06-24 Thread Monte Goulding via use-livecode
There’s a report open for this here to which I suggested the same workaround 
Paul has https://quality.livecode.com/show_bug.cgi?id=22134 


In order to resolve the report we need to add a way for a widget to draw 
something different into a printing context than it does normally.

Cheers

Monte

> On 25 Jun 2019, at 6:33 am, Tom Glod via use-livecode 
>  wrote:
> 
> nope thats the way. makes sense that it works that way.
> 
> On Mon, Jun 24, 2019 at 4:26 PM Paul Dupuis via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> On 6/24/2019 4:05 PM, Marty Knapp via use-livecode wrote:
>>> I was just playing with the new PDF widget in LC 9.5. You can insert a
>> PDF and overlay other LC objects (very cool) and then print the card but
>> the PDF portion prints at low resolution - or did I miss something?
>>> 
>>> 
>> 
>> 
>> The same issue exists in the external OR in any printing based on
>> printing cards in LiveCode. If you want someone at higher than screen
>> resolution (like 2x or 4x, you sort of need to size the image or pDF at
>> 2x or 4x off screen (or locked screen) and take a export of the image
>> and the size the image down to 1x size.
>> 
>> Unless some one knows of a better approach.
>> 
>> 
>> ___
>> 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: Quotient

2019-06-24 Thread hh via use-livecode
A (theoretical) circle is effectively a regular polygon with "many" vertices.

LC Script draws only integer valued points (although you can give decimals).

That approximation of a circle by regular polygons is shown in the sample stack
http://forums.livecode.com/viewtopic.php?p=98716#p98716

The stack does what you want (outputs integer valued points by rounding).
Clicking the points shows their location indicated red in the polygon.

p.s. x div 1 is the same as trunc(x) for x>=0.
___
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


"Drawing" is a reserved stack name?!?

2019-06-24 Thread Paul Dupuis via use-livecode
So before I report this as a "bug", I would appreciate if someone could 
confirm. Using LC9.0.4 and LC 9.0.5rc under Windows


Open LC
Make a new stack
Make the stack name "Drawing"
Save the stack as "Drawing.livecode"
Make sure that your have View > Show IDE Stacks in Lists set to Off
Exit LiveCode

Open Drawing.livecode back up in LiveCode.
Look in the Project Browser -> no "Drawing" stack

Turn View > Show IDE Stacks in Lists to On
Observe you can see the "Drawing" stack in the Project Browser

LC thinks "Drawing" is part of the IDE. If you open LiveCode with NO 
stacks and view the IDE stacks in the Project Browser, there is no 
"Drawing" stack, so it is not a conflict.


I though the "reserved" stack names were rev*, Home, Message Box, and 
com.livecode.* (oh and recently tsNetLubURL)


I do not recall seeing the name "Drawing" as a reserved stack name for 
the IDE, so this is either a documentation bug or a IDE bug. Can someone 
confirm?





___
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: Quotient

2019-06-24 Thread Dar Scott Consulting via use-livecode
Some thoughts:

A. Define round as a way to get rid of the fractional part.
B. Use a simple (almost regular) polygon that can be multiplied to be bigger.
C. Create your own functions that hide decimal fractions and let students use 
them.
  1. Use turtle graphics
D. Draw a circle of diameter 100 on a grid and create a list of points to be 
used for corresponding to degrees.

> On Jun 24, 2019, at 2:01 PM, Richmond via use-livecode 
>  wrote:
> 
> I have had no trouble with LiveCode in this respect: that is NOT the problem: 
> the problem
> is that, in Bulgaria, kids have not been taught about numbers with decimal 
> points when they
> are 11 years old (strikes me as a bit late in the day), so am trying to avoid 
> those just now.
> 
> Richmond.
> 
> On 24.06.19 22:51, J. Landman Gay via use-livecode wrote:
>> I generally use "round" when working with pixels. But you don't have to, the 
>> LC engine seems to manage decimal pixels for you.
>> 
>> Clever, that engine.
>> 
>> On 6/24/19 2:34 PM, Richmond via use-livecode wrote:
>>> Thanks: I have.
>>> 
>>> BUT, imagine, if you will, a situation where I want to animate a blob as in:
>>> 
>>> put 1 into LYNE
>>>repeat until line LYNE of fld "PointsList" is empty
>>>  move grc "blob" to line LYNE of fld "PointsList"
>>>  wait 2 ticks
>>>  add 1 to LYNE
>>>   end repeat
>>> 
>>> Let's suppose those points should make the blob go round an invisible circle
>>> (this is fairly old-hat as Benjamin Beaumont demonstrated this sort of thing
>>> at the Edinburgh conference about 10 years ago) but, while I might generate
>>> the points of a circle using the ancient SINE-COSINE algorhthim (b*gger,
>>> how do you spell that word?), I want the points in the listField to end up 
>>> as
>>> whole numbers with no decimal component.
>>> 
>>> I'm not sure 'div' is going to be much help there.
>>> 
>>> I suppose I could be totally whacko and set up the decimal point as the 
>>> item delimiter
>>> and start splitting off bits . . . .
>>> 
>>> Richmond.
>>> 
>>> On 24.06.19 22:26, Mark Waddingham via use-livecode wrote:
 Try ‘div’ :)
 
 Mark.
 
 Sent from my iPhone
 
> On 24 Jun 2019, at 20:22, Richmond via use-livecode 
>  wrote:
> 
> Err . . .
> 
> So; I have several numbers that have to be divided by other numbers:
> 
> 28 / 3
> 
> 301 / 10
> 
> 44 / 6
> 
> now these will all yield "awkward numbers" consisting of a quotient and a 
> remainder:
> 
> 9.33
> 
> 30.1
> 
> 7.33
> 
> Now I know one could be "ever so slightly potty" in LiveCode to get the 
> quotient by doing something
> like this:
> 
> put 28/3 into XX
> put (28 mod 3) into YY
> put (XX - YY) into ZZ
> 
> but that seems a long way round . . . but I cannot work out what the 
> equivalent term to 'mod'
> is to get the quotient in LiveCode.
> 
> 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: PDF Widget

2019-06-24 Thread Tom Glod via use-livecode
nope thats the way. makes sense that it works that way.

On Mon, Jun 24, 2019 at 4:26 PM Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 6/24/2019 4:05 PM, Marty Knapp via use-livecode wrote:
> > I was just playing with the new PDF widget in LC 9.5. You can insert a
> PDF and overlay other LC objects (very cool) and then print the card but
> the PDF portion prints at low resolution - or did I miss something?
> >
> >
>
>
> The same issue exists in the external OR in any printing based on
> printing cards in LiveCode. If you want someone at higher than screen
> resolution (like 2x or 4x, you sort of need to size the image or pDF at
> 2x or 4x off screen (or locked screen) and take a export of the image
> and the size the image down to 1x size.
>
> Unless some one knows of a better approach.
>
>
> ___
> 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: PDF Widget

2019-06-24 Thread Paul Dupuis via use-livecode

On 6/24/2019 4:05 PM, Marty Knapp via use-livecode wrote:

I was just playing with the new PDF widget in LC 9.5. You can insert a PDF and 
overlay other LC objects (very cool) and then print the card but the PDF 
portion prints at low resolution - or did I miss something?





The same issue exists in the external OR in any printing based on 
printing cards in LiveCode. If you want someone at higher than screen 
resolution (like 2x or 4x, you sort of need to size the image or pDF at 
2x or 4x off screen (or locked screen) and take a export of the image 
and the size the image down to 1x size.


Unless some one knows of a better approach.


___
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


PDF Widget

2019-06-24 Thread Marty Knapp via use-livecode
I was just playing with the new PDF widget in LC 9.5. You can insert a PDF and 
overlay other LC objects (very cool) and then print the card but the PDF 
portion prints at low resolution - or did I miss something?

Marty
___
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: Quotient

2019-06-24 Thread Richmond via use-livecode
I have had no trouble with LiveCode in this respect: that is NOT the 
problem: the problem
is that, in Bulgaria, kids have not been taught about numbers with 
decimal points when they
are 11 years old (strikes me as a bit late in the day), so am trying to 
avoid those just now.


Richmond.

On 24.06.19 22:51, J. Landman Gay via use-livecode wrote:
I generally use "round" when working with pixels. But you don't have 
to, the LC engine seems to manage decimal pixels for you.


Clever, that engine.

On 6/24/19 2:34 PM, Richmond via use-livecode wrote:

Thanks: I have.

BUT, imagine, if you will, a situation where I want to animate a blob 
as in:


put 1 into LYNE
   repeat until line LYNE of fld "PointsList" is empty
 move grc "blob" to line LYNE of fld "PointsList"
 wait 2 ticks
 add 1 to LYNE
  end repeat

Let's suppose those points should make the blob go round an invisible 
circle
(this is fairly old-hat as Benjamin Beaumont demonstrated this sort 
of thing
at the Edinburgh conference about 10 years ago) but, while I might 
generate

the points of a circle using the ancient SINE-COSINE algorhthim (b*gger,
how do you spell that word?), I want the points in the listField to 
end up as

whole numbers with no decimal component.

I'm not sure 'div' is going to be much help there.

I suppose I could be totally whacko and set up the decimal point as 
the item delimiter

and start splitting off bits . . . .

Richmond.

On 24.06.19 22:26, Mark Waddingham via use-livecode wrote:

Try ‘div’ :)

Mark.

Sent from my iPhone

On 24 Jun 2019, at 20:22, Richmond via use-livecode 
 wrote:


Err . . .

So; I have several numbers that have to be divided by other numbers:

28 / 3

301 / 10

44 / 6

now these will all yield "awkward numbers" consisting of a quotient 
and a remainder:


9.33

30.1

7.33

Now I know one could be "ever so slightly potty" in LiveCode to get 
the quotient by doing something

like this:

put 28/3 into XX
put (28 mod 3) into YY
put (XX - YY) into ZZ

but that seems a long way round . . . but I cannot work out what 
the equivalent term to 'mod'

is to get the quotient in LiveCode.

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: Changing array key text

2019-06-24 Thread J. Landman Gay via use-livecode
Thanks, I hadn't thought of just extracting a chunk of the array. I 
should have.


On 6/24/19 2:37 PM, Brian Milby via use-livecode wrote:

I’m pretty sure the PI deletes the old key and creates a new key with the 
existing value.

Thanks,
Brian
On Jun 24, 2019, 3:23 PM -0400, J. Landman Gay via use-livecode 
, wrote:

I have a multi-dimensional array and sometimes I need to change the text
of one of the array keys without destroying the rest of the array.
Putting a different value into a key removes all the subkeys under it,
so I wonder if there's a way to update the text of a key without
re-creating the entire array again.

The property inspector lets you do this when you change the name of an
array key. Is there a quick trick for that?

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




--
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: Quotient

2019-06-24 Thread J. Landman Gay via use-livecode
I generally use "round" when working with pixels. But you don't have to, 
the LC engine seems to manage decimal pixels for you.


Clever, that engine.

On 6/24/19 2:34 PM, Richmond via use-livecode wrote:

Thanks: I have.

BUT, imagine, if you will, a situation where I want to animate a blob as 
in:


put 1 into LYNE
   repeat until line LYNE of fld "PointsList" is empty
     move grc "blob" to line LYNE of fld "PointsList"
     wait 2 ticks
     add 1 to LYNE
  end repeat

Let's suppose those points should make the blob go round an invisible 
circle
(this is fairly old-hat as Benjamin Beaumont demonstrated this sort of 
thing

at the Edinburgh conference about 10 years ago) but, while I might generate
the points of a circle using the ancient SINE-COSINE algorhthim (b*gger,
how do you spell that word?), I want the points in the listField to end 
up as

whole numbers with no decimal component.

I'm not sure 'div' is going to be much help there.

I suppose I could be totally whacko and set up the decimal point as the 
item delimiter

and start splitting off bits . . . .

Richmond.

On 24.06.19 22:26, Mark Waddingham via use-livecode wrote:

Try ‘div’ :)

Mark.

Sent from my iPhone

On 24 Jun 2019, at 20:22, Richmond via use-livecode 
 wrote:


Err . . .

So; I have several numbers that have to be divided by other numbers:

28 / 3

301 / 10

44 / 6

now these will all yield "awkward numbers" consisting of a quotient 
and a remainder:


9.33

30.1

7.33

Now I know one could be "ever so slightly potty" in LiveCode to get 
the quotient by doing something

like this:

put 28/3 into XX
put (28 mod 3) into YY
put (XX - YY) into ZZ

but that seems a long way round . . . but I cannot work out what the 
equivalent term to 'mod'

is to get the quotient in LiveCode.

Richmond.



--
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: Quotient

2019-06-24 Thread Richmond via use-livecode
Ha, ha, ha; they are coming to take me away as I am replying to my own 
post yet again.


And this does seem a bit bonkers;

onmouseUp
    put0 intoKKK
    put1 intoJJJ
repeatuntil KKK > 6.3
            put((150 + (100 * (COS(KKK div 1) intoCKKK
            put((150 + (100 * (SIN(KKK div 1)intoSKKK
            putCKKK & ", " & SKKK intoline JJJ offld "POINTZ"
            add0.01 toKKK
            add1 toJJJ
        endrepeat
endmouseUp

The idea of doing 'div 1' is . . . .

Richmond.



On 24.06.19 22:34, Richmond wrote:

Thanks: I have.

BUT, imagine, if you will, a situation where I want to animate a blob 
as in:


put 1 into LYNE
  repeat until line LYNE of fld "PointsList" is empty
    move grc "blob" to line LYNE of fld "PointsList"
    wait 2 ticks
    add 1 to LYNE
 end repeat

Let's suppose those points should make the blob go round an invisible 
circle
(this is fairly old-hat as Benjamin Beaumont demonstrated this sort of 
thing
at the Edinburgh conference about 10 years ago) but, while I might 
generate

the points of a circle using the ancient SINE-COSINE algorhthim (b*gger,
how do you spell that word?), I want the points in the listField to 
end up as

whole numbers with no decimal component.

I'm not sure 'div' is going to be much help there.

I suppose I could be totally whacko and set up the decimal point as 
the item delimiter

and start splitting off bits . . . .

Richmond.

On 24.06.19 22:26, Mark Waddingham via use-livecode wrote:

Try ‘div’ :)

Mark.

Sent from my iPhone

On 24 Jun 2019, at 20:22, Richmond via use-livecode 
 wrote:


Err . . .

So; I have several numbers that have to be divided by other numbers:

28 / 3

301 / 10

44 / 6

now these will all yield "awkward numbers" consisting of a quotient 
and a remainder:


9.33

30.1

7.33

Now I know one could be "ever so slightly potty" in LiveCode to get 
the quotient by doing something

like this:

put 28/3 into XX
put (28 mod 3) into YY
put (XX - YY) into ZZ

but that seems a long way round . . . but I cannot work out what the 
equivalent term to 'mod'

is to get the quotient in LiveCode.

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: Setting conditional breakpoints

2019-06-24 Thread J. Landman Gay via use-livecode
I doubt you're thick, Lagi. :) As I mentioned before, I'm having a lot 
of trouble with breakpoints lately. Also, there's a difference between a 
breakpoint and a watch, and I rarely use watches because they aren't 
universally applicable. I do use conditional breakpoints though.


A watch is supposed to catch any instance where a specified variable 
changes its value. My experiments were several years ago, but back then 
I found that only global variables honored watches. I guess that makes 
sense, since you can't trap a variable that isn't in memory already. I 
don't use watch variables any more because I don't use globals much. And 
even back then, watches weren't always reliable.


For normal breakpoints, I don't use the breakpoints pane in the editor, 
I usually set them directly in the script. Set a red dot at the place 
where you want to break, right-click the dot, and choose Edit. In the 
dialog that appears, type the condition that needs to be met. The 
condition needs to include a variable that occurs in the handler you're 
debugging.


An example:

on foo pVar
  put the number of items in pVar into tNum
  switch tNum
case 1
  doThing 1
  break
case 2
  doThing 2
  break
case 3
  doThing 3
  break
  end switch
end foo

I can now set a breakpoint at the "switch tNum" line with a condition:
  tNum = 2
and the breakpoint will only fire if that condition is met.

There used to be a problem deleting breakpoints from the pane in the 
editor window, but that was fixed a while ago. Maybe it has recurred. I 
don't use that, I just click on the dot in the script to remove it and 
that has always worked. If you're using an older version of LC, you may 
have hit that bug though.


On 6/24/19 5:49 AM, Lagi Pittas via use-livecode wrote:

Hi Jacque,

It never worked before and I couldn't get it to work today. I can't be that
thick  can I?
If the "incantation" means I can't get it work (especially the delete - the
breakpoints i set would not remove however I clicked) easily
then I would presume there are some people as dumb as me who won't be able
to do it.

I spent over half an hour trying to get a watch/breakpoint working - do you
tie the watch to the breakpoint if so how - Tried

Can you give me a recipe "for dummies"

"Don't make me think" -  Steve Krug

"Show me the Banana" - "The BIg Red Fez" - Seth Godin

"The best way to motivate the monkey, of course, is to use a banana.
  Whenever the monkey walks into a new situation, all it wants to know is,
“Where’s the banana?”
  If the banana isn’t easy to see, easy to get and obvious, the monkey is
going to lose interest.
  But, if you can make it clear to the monkey what’s in it for him, odds are
he’ll do what you want. "

Thanks

Lagi

On Sat, 22 Jun 2019 at 00:48, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:


Set a breakpoint, right click it, choose condition, and fill out the
dialog. That's how I usually do it.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On June 21, 2019 5:34:30 PM Bob Sneidar via use-livecode
 wrote:


In the breakpoints tab of the script editor, if you right click the

lower

pane, you can create conditional breakpoints. For instance if the value

of

a variable is something. I have never gotten them to work, and I find I

am

needing this more and more.

Bob S



On Jun 21, 2019, at 15:26 , dunbarx--- via use-livecode
 wrote:

Not sure what you could mean.
on mouseUp  if the mouseLoc is within the rect of btn 3 then

breakPoint

if the visible  of btn 3 then breakPoint   if the...


Surely I am missing this.
Craig



___
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: Changing array key text

2019-06-24 Thread Brian Milby via use-livecode
I’m pretty sure the PI deletes the old key and creates a new key with the 
existing value.

Thanks,
Brian
On Jun 24, 2019, 3:23 PM -0400, J. Landman Gay via use-livecode 
, wrote:
> I have a multi-dimensional array and sometimes I need to change the text
> of one of the array keys without destroying the rest of the array.
> Putting a different value into a key removes all the subkeys under it,
> so I wonder if there's a way to update the text of a key without
> re-creating the entire array again.
>
> The property inspector lets you do this when you change the name of an
> array key. Is there a quick trick for that?
>
> --
> 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: Quotient

2019-06-24 Thread Richmond via use-livecode

Thanks: I have.

BUT, imagine, if you will, a situation where I want to animate a blob as in:

put 1 into LYNE
  repeat until line LYNE of fld "PointsList" is empty
    move grc "blob" to line LYNE of fld "PointsList"
    wait 2 ticks
    add 1 to LYNE
 end repeat

Let's suppose those points should make the blob go round an invisible 
circle
(this is fairly old-hat as Benjamin Beaumont demonstrated this sort of 
thing

at the Edinburgh conference about 10 years ago) but, while I might generate
the points of a circle using the ancient SINE-COSINE algorhthim (b*gger,
how do you spell that word?), I want the points in the listField to end 
up as

whole numbers with no decimal component.

I'm not sure 'div' is going to be much help there.

I suppose I could be totally whacko and set up the decimal point as the 
item delimiter

and start splitting off bits . . . .

Richmond.

On 24.06.19 22:26, Mark Waddingham via use-livecode wrote:

Try ‘div’ :)

Mark.

Sent from my iPhone


On 24 Jun 2019, at 20:22, Richmond via use-livecode 
 wrote:

Err . . .

So; I have several numbers that have to be divided by other numbers:

28 / 3

301 / 10

44 / 6

now these will all yield "awkward numbers" consisting of a quotient and a 
remainder:

9.33

30.1

7.33

Now I know one could be "ever so slightly potty" in LiveCode to get the 
quotient by doing something
like this:

put 28/3 into XX
put (28 mod 3) into YY
put (XX - YY) into ZZ

but that seems a long way round . . . but I cannot work out what the equivalent 
term to 'mod'
is to get the quotient in LiveCode.

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: Quotient

2019-06-24 Thread Richmond via use-livecode

Well . . . Um . . . div

But that is alright as far as sums such as 28 div 3 go . . .

But it is not much cop when it comes to finding
the quotient of some long and complicated bit of Mathematics.

On 24.06.19 22:22, Richmond wrote:

Err . . .

So; I have several numbers that have to be divided by other numbers:

28 / 3

301 / 10

44 / 6

now these will all yield "awkward numbers" consisting of a quotient 
and a remainder:


9.33

30.1

7.33

Now I know one could be "ever so slightly potty" in LiveCode to get 
the quotient by doing something

like this:

put 28/3 into XX
put (28 mod 3) into YY
put (XX - YY) into ZZ

but that seems a long way round . . . but I cannot work out what the 
equivalent term to 'mod'

is to get the quotient in LiveCode.

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: Quotient

2019-06-24 Thread Mark Waddingham via use-livecode
Try ‘div’ :)

Mark.

Sent from my iPhone

> On 24 Jun 2019, at 20:22, Richmond via use-livecode 
>  wrote:
> 
> Err . . .
> 
> So; I have several numbers that have to be divided by other numbers:
> 
> 28 / 3
> 
> 301 / 10
> 
> 44 / 6
> 
> now these will all yield "awkward numbers" consisting of a quotient and a 
> remainder:
> 
> 9.33
> 
> 30.1
> 
> 7.33
> 
> Now I know one could be "ever so slightly potty" in LiveCode to get the 
> quotient by doing something
> like this:
> 
> put 28/3 into XX
> put (28 mod 3) into YY
> put (XX - YY) into ZZ
> 
> but that seems a long way round . . . but I cannot work out what the 
> equivalent term to 'mod'
> is to get the quotient in LiveCode.
> 
> 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

Quotient

2019-06-24 Thread Richmond via use-livecode

Err . . .

So; I have several numbers that have to be divided by other numbers:

28 / 3

301 / 10

44 / 6

now these will all yield "awkward numbers" consisting of a quotient and 
a remainder:


9.33

30.1

7.33

Now I know one could be "ever so slightly potty" in LiveCode to get the 
quotient by doing something

like this:

put 28/3 into XX
put (28 mod 3) into YY
put (XX - YY) into ZZ

but that seems a long way round . . . but I cannot work out what the 
equivalent term to 'mod'

is to get the quotient in LiveCode.

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


Changing array key text

2019-06-24 Thread J. Landman Gay via use-livecode
I have a multi-dimensional array and sometimes I need to change the text 
of one of the array keys without destroying the rest of the array. 
Putting a different value into a key removes all the subkeys under it, 
so I wonder if there's a way to update the text of a key without 
re-creating the entire array again.


The property inspector lets you do this when you change the name of an 
array key. Is there a quick trick for that?


--
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: Setting conditional breakpoints

2019-06-24 Thread Mark Wieder via use-livecode

On 6/24/19 10:38 AM, Dr. Hawkins via use-livecode wrote:


But how about defining ”zetProp” as a stack (or whatever) property, and making 
the code changes I mentioned?


Yep - that's the way I work around it as well:

setprop _visible pValue
   set the visible of me to pValue
end _visible

on mouseUp pMouseButton
   set the _visible of field 1 to not the visible of field 1
end mouseUp

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

Re: Setting conditional breakpoints

2019-06-24 Thread Dr. Hawkins via use-livecode
On Jun 24, 2019, at 10:32 AM, Mark Wieder via use-livecode 
 wrote:

> 
> Unfortunately, it's still not possible to use setProp and getProp handlers 
> with built-in properties, so catching a change to the visible of an object 
> won't work. It's been in bugzilla for 14 years now.
> 
> https://quality.livecode.com/show_bug.cgi?id=3126 
> 




wow.  And so my code changes wouldn’t even be needed . . .

But how about defining ”zetProp” as a stack (or whatever) property, and making 
the code changes I mentioned?
— 
Richard E. Hawkins, Esq.
The Hawkins Law Firm
3430 E. Flamingo Rd.
Suite 232
Las Vegas, NV  89121
(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: Setting conditional breakpoints

2019-06-24 Thread Mark Wieder via use-livecode

On 6/24/19 9:00 AM, doc hawk via use-livecode wrote:

> Anyway, if you use setProp handlers instead of directly setting 
properties, you could stick a little red PCD in *that*  handler.


Unfortunately, it's still not possible to use setProp and getProp 
handlers with built-in properties, so catching a change to the visible 
of an object won't work. It's been in bugzilla for 14 years now.


https://quality.livecode.com/show_bug.cgi?id=3126

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


Re: Setting conditional breakpoints

2019-06-24 Thread doc hawk via use-livecode

On Jun 24, 2019, at 8:11 AM, Bob Sneidar via use-livecode 
 wrote:
> 
> True, but I need itto break AT the line of code that changes a property of a 
> stack. If there is a script running while when the send in time command is 
> due, the existing script will continue to run, THEN at the first idle, the 
> send in time will run. 

It hasn’t occurred to me to try *any* conditional breakpoints in years—they 
caused crashes at least since 5.x, and I hadn’t heard that they’d been fixed.

Anyway, if you use setProp handlers instead of directly setting properties, you 
could stick a little red PCD in *that*  handler.


Do a global search for  

set the someProperty of this stack to 

and replace with

setProp someProperty,

or something similar; check your own code.
___
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: Setting conditional breakpoints

2019-06-24 Thread Bob Sneidar via use-livecode
True, but I need itto break AT the line of code that changes a property of a 
stack. If there is a script running while when the send in time command is due, 
the existing script will continue to run, THEN at the first idle, the send in 
time will run. 

Bob S


> On Jun 21, 2019, at 16:51 , Tom Glod via use-livecode 
>  wrote:
> 
> oh you can open up the engine to do other handlers by using "in time"
> 
> I use it all the time..I have a message checking hotkeys clipboard
> changes and it works beautifully.
> 
> 
> on CheckIfVisible
> if the visible of defaultstack = true then
> send "CheckIfVisible" to defaultstack in 100 milliseconds
> else
> end if
> end CheckIfVisible


___
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


[ANN] This Week in LiveCode 183

2019-06-24 Thread panagiotis merakos via use-livecode
Hi all,

Read about new developments in LiveCode open source and the open source
community in today's edition of the "This Week in LiveCode" newsletter!

Read issue #183 here: http://bit.ly/2Lb7bVn

This is a weekly newsletter about LiveCode, focussing on what's been
going on in and around the open source project. New issues will be
released weekly on Mondays. We have a dedicated mailing list that will
deliver each issue directly to you e-mail, so you don't miss any!

If you have anything you'd like mentioned (a project, a discussion
somewhere, an upcoming event) then please get in touch.

-- 
Panagiotis Merakos 
LiveCode Software Developer

Everyone Can Create Apps 
___
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


ImagePalette_v100

2019-06-24 Thread hh via use-livecode


>>> The stack needs LC 9. It also runs in LC 8 but
>>> up to 10 times slower.

The stack creates a color palette from any image.
You set the number of colors (2-256) of the palette.

Such palettes are often used to create "harmonic" designs
of drawings/posters or for creating web pages.

You can see the "quantized" image with that palette, see
https://en.wikipedia.org/wiki/Color_quantization

The quantized image is computed built-in or by using
LC's "export image with palette" with the computed palette.

The stack uses the excellent javaScript library rgbQuant
https://github.com/leeoniya/RgbQuant.js/
via a browser widget. The library is included in the stack.

Download "ImagePalette" from "Sample Stacks" or from
http://livecodeshare.runrev.com/stack/938/

If you have a decent GPU then around 1-2 seconds are
needed for images of medium screen size (1920x1080).

License MIT ( see https://en.wikipedia.org/wiki/MIT_License )

___
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: Setting conditional breakpoints

2019-06-24 Thread Lagi Pittas via use-livecode
Hi Jacque,

It never worked before and I couldn't get it to work today. I can't be that
thick  can I?
If the "incantation" means I can't get it work (especially the delete - the
breakpoints i set would not remove however I clicked) easily
then I would presume there are some people as dumb as me who won't be able
to do it.

I spent over half an hour trying to get a watch/breakpoint working - do you
tie the watch to the breakpoint if so how - Tried

Can you give me a recipe "for dummies"

"Don't make me think" -  Steve Krug

"Show me the Banana" - "The BIg Red Fez" - Seth Godin

"The best way to motivate the monkey, of course, is to use a banana.
 Whenever the monkey walks into a new situation, all it wants to know is,
“Where’s the banana?”
 If the banana isn’t easy to see, easy to get and obvious, the monkey is
going to lose interest.
 But, if you can make it clear to the monkey what’s in it for him, odds are
he’ll do what you want. "

Thanks

Lagi

On Sat, 22 Jun 2019 at 00:48, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Set a breakpoint, right click it, choose condition, and fill out the
> dialog. That's how I usually do it.
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On June 21, 2019 5:34:30 PM Bob Sneidar via use-livecode
>  wrote:
>
> > In the breakpoints tab of the script editor, if you right click the
> lower
> > pane, you can create conditional breakpoints. For instance if the value
> of
> > a variable is something. I have never gotten them to work, and I find I
> am
> > needing this more and more.
> >
> > Bob S
> >
> >
> >> On Jun 21, 2019, at 15:26 , dunbarx--- via use-livecode
> >>  wrote:
> >>
> >> Not sure what you could mean.
> >> on mouseUp  if the mouseLoc is within the rect of btn 3 then
> breakPoint
> >> if the visible  of btn 3 then breakPoint   if the...
> >>
> >>
> >> Surely I am missing this.
> >> Craig
> >
> >
> > ___
> > 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