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

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

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

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

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

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

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

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

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

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 >

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

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

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

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

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

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

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

"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

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

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,

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.

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

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

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

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

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

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,

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

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.

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

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

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

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

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

[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

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

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

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