, but will almost certainly produce
unexpected results.
David Epstein
___
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
thanks.
David Epstein
___
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
Are there any limits on what characters can be used in an array key?
For example, do tab characters cause problems?
Many thanks.
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe
Has anyone scripted a function that will locate the closing
parenthesis (or bracket, etc.) of a pair? Below is my effort.
Reports of its limitations or simpler alternatives (regex?) are invited.
David Epstein
function offsetPair a,b,str,@z
-- returns offset(a,str) and loads in z offset
the front. And I tried to match the first
( rather than building a list of all matches. There is no
practical need for yet another approach, but in case others will find
it of interest here is a speedy one that does not step through each
character and barely uses offset.
David Epstein
function
the problem.)
Can anyone confirm this, and has anyone already scripted a workaround?
Thanks very much.
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
Thanks to Jan Schenkel for the confirmation and suggestion.
Unfortunately, when I tried to script my own pageHeights function
using formattedHeight, I discovered that formattedHeight also gives
inaccurate results when paragraph properties have been set. I have
reported both of these
actually has such a property or where the script is.
Many thanks.
David Epstein
___
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
thoughts?
David Epstein
___
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
as soon as I
choose the file.
On my MacBook Air, I do not have this problem.
Any one else have this experience, or suggestions?
Many thanks.
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe
:
copy group 1 of stack x to this card
Then with card 2 of stack y frontmost, type in the message box:
copy group 1 of stack x to this card
Result:
When copying to card 1, the content of the fields is copied.
When copying to card 2, the fields are empty.
Thanks for any insights into this.
David
determines that my findings are
incorrect.
David Epstein
___
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
get the customKeys[myCustomPropertySetName] of myObject
Jacqueline Gay asked:
If I store an array as a custom property, is there a way to get its
keys
without putting the whole thing into a variable first?
David Epstein
___
use-livecode
1 of stack
2 whenever field 1 of stack 1 is edited).
David Epstein
___
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
of the formattedRect of the group.
David Epstein
___
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
by about two-thirds. With tens or hundreds of thousands of pixels
being sampled in the calculation, I would not expect this variation.
Many thanks for any insights or suggestions.
David Epstein
___
use-livecode mailing list
use-livecode
cases?
David Epstein
___
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
.
David Epstein
___
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
edge of the paper; and also
as much space outside of that rectangle as can be printed to. Thus I
need to know how much of that 1 inch cannot be printed to.
Many thanks for any suggestions.
David Epstein
___
use-livecode mailing list
use-livecode
1 of the printPaperSize / ( item 1 of the printRectangle +
item 3 of the printRectangle).
But this symmetry was found on only one of the two printers I tested.
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit
character it gets indented properly, showing me that the tab had been inserted.
In LiveCode 5.5 the cursor moves as expected and desired when I press tab, to
the indented point where what I type next will be inserted.
Do others see this symptom?
Many thanks.
David Epstein
or sometimes invisible that cause
the same problem? And what is a remedy?
Many thanks.
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences
(myLat),COS(Lat0)*SIN(myLat)-SIN(Lat0)*COS(myLat)*COS(myLon-Lon0))
into k -- bearing in radians
put k/rpd into aid -- in degrees
return dkm
end earthKM
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url
-- calculate point x1,y1 that is distance d and angle a from point x,y
-- return y1, load x1 into param 5
-- a is in degrees, positive is east of north
put (90-a)*2*pi/360 into a
put x + d*cos(a) into xAD
return y + d*sin(a)
end yAD
David Epstein
the loc” using non-integers. I
wrote the function without rounding because I may want to call it from a script
that performs multiple transformations and then rounds the final results.
On 3/10/15 10:27 PM, David Epstein wrote:
function yAD x,y,d,a,@xAD
-- calculate point x1,y1
put return into char -1 of k2
put k2 after hold2
put empty into k2
end repeat
return hold2
end scrubbedText
If anyone sees a way to do this without stepping through each character, or
without excluding non-standard visible characters, suggestions are welcome.
David Epstein
of diagnosing what’s
going on?
David Epstein
An issue that has been discussed in the past might be unplaced groups --
groups that have been created at some time but aren't being used in the
stack. Here's one thread:
http://runtime-revolution.278305.n4.nabble.com/Storing-and-saving-a-settin
names of a file I
will already be loading that file into memory, and it will be too late to head
off the alert.
Many thanks.
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe
see this, or have solutions?
David Epstein
___
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
?
David Epstein
___
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
that an
option can be put into effect in one step, not requiring some other action that
enables or shows the button.
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
to anything other than
100%. And if I print it, even at 100%, I get screen quality, i.e., very bad,
resolution. Has something changed? Can LiveCode not display or print PDFs at
full resolution on an Intel Mac?
David Epstein
___
use-livecode mailing list
B’s. Only after the user has
repeatedly clicked OK or Cancel to remove the duplicative series of subgroups
will a click on Field A cause the problem.
Thanks very much for any insights about this.
David Epstein
___
use-livecode mailing list
use
think it will be easier to circumvent this problem than to figure it out, but
I will report back if I narrow it down.
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage
from the action
that my script is displaying in a LiveCode stack.
David Epstein
___
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
to the next; so
that on each change of card there is a new mouseEnter event that restarts the
mouseMove message stream.
I tried Matt’s idea of catching all mouseMoves, but still had problems. So I
have placed the entire “quick browse” diagram in a separate palette, where
mouseMove is n
, unless I move the mouse out of and back into the control.
Is this how things should work? Do I need to move my control to a palette so
that the change of card that it triggers does not interrupt its own operation?
Are there other options?
David Epstein
the expected result. But with stack A still
frontmost, if I type in the message box “the nSL of stack ‘B’” I get an empty
result (not even a “0”).
What am I missing?
Thanks very much.
David Epstein
___
use-livecode mailing list
use-livecode
: error in object expression
Hint:
Various other property names also fail, but I can’t detect a pattern.
Any insights?
Many thanks,
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe
thanks.
David Epstein
___
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
To clarify:
For a locked field with autohilite and traversalOn both true, the “built in”
auto scrolling works the same as with an unlocked field. I’m looking for a way
to script this kind of auto scrolling with autohilite and traversalOn both
false.
David Epstein
While trying Mike Bonner's suggestion of "manual" measuring, I learned the
answer: a regular polygon whose official length is L and width is W is
inscribed in the oval whose length is L and width is W. So for an equilateral
triangle the area will be 3/4 * 3^.5 * R^2 (where R = L =
point or
selection from one unlocked field to the next, the list hilite is lost. How
can I preserve it?
Many thanks.
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
with accent grave. Is
there some font I can choose, or some other action I should take, to get these
(and others) to display properly?
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe
that could fit into that square. Is there some math that would give me the
area of that triangle from the height and width of the square (i.e., the
official height and width of the polygon object)?
David Epstein
___
use-livecode mailing list
use-livecode
as a word by my script.
Is there a better way to test for a line of text that has no visible characters?
Many thanks.
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
ctive textHeight of the target into t
put round(t*7/12) into m1
put round(t/3) into m2
return m1,6+m2,m1,m1
end niceMargins
getProp tightMargins
put round(.25*the effective textHeight of the target) into m
return m,6,m,max(6,m)
end tightMargins
Improvements to thes
.
A perhaps related question: Why does a field margin of zero clip the visible
text at the top and left?
Many thanks.
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
of text.
Does anyone have relevant experiences or suggested remedies or ways of better
diagnosing the problem?
Perhaps relevant is that on the Mac I mostly use LC 5.5, on Windows 10 I am
using LC Community 9.0 (dp4).
Many thanks.
David Epstein
___
use-liv
Has anyone written a LiveCode function that will take a table of 2 or more
independent variables and 1 dependent variable, and return coefficients,
intercept, and standard errors for a multiple regression?
David Epstein
___
use-livecode mailing list
ickly than a field?
Many thanks.
David Epstein
___
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
, or the user types
there? Does it happen if I open a palette, or move a palette, or if the user
clicks on the palette?
Many thanks.
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe
earing in the recentCards, and why is my
palette not appearing there?
Many thanks.
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http
the name of this
stack into gActiveStack.
David Epstein
Jacqueline Gay wrote:
I wouldn't expect the execution contexts to be in the list but it sounds
like that's a result of the debugging process itself. Is it different if
you just log it to the message box without the debugger?
get
ate of the field just before undoing. I store the chunk information so
that undo can restore the selection as well as the text to its prior state.
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url t
quot; && gName
return oldVal
end globalSwap
Is there some way to write this with fewer or no uses of “do”?
David Epstein
___
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
repeat
end if
put fL into item 1 of hold
return hold
end colGuide
David Epstein
___
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
? Thank you!
David Epstein
___
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
care of this?
Many thanks.
David Epstein
___
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
emoved”], and u[“cardsAdded”],
and uses values stored in u to restore the prior state of things, while
reloading u with values reporting the state of things now being reversed.
For text, I load u[“changed”] with “htmlText”,, and load
u[“htmlText”,] with the htmlText of that field before the lat
when I do the same
thing to the same text in those other programs. (LC 9.6 on Mac OS 10.12.6).
Do others see the same thing? Does anyone know the underlying cause of this,
or a remedy?
David Epstein
___
use-livecode mailing list
use-livecode
the polygon's
enclosing rectangle, and then adjust the alphaData of that new image. But
while the new image gets trimmed a bit, the result does not match the shape of
the designated polygon. Any thoughts?
David Epstein
on action gID ## gID is the short id of the polygon
import snapshot from
irregularly shaped images. Is there some imprecision in the “within” function?
This would be important to know for other uses of it.
David Epstein
on imageToGrc gID
# fills graphic id gID with image it is positioned on; works for polygon,
oval, regular, or rectangle
set the linesize of grc id gID
clipboard
> end mouseUp
>
> I tested this in LC 10dp6 and it works. Once you see what keys are
> present with your mixed text and images copied to the clipboard, you can
> choose which clipboard array and keys to work with to get the data.
>
> -- Paul
>
>
>> On 9/2/2023
pboardData
or rawClipboardData to an array variable; and it does not seem that I can
access any element of the rawClipboardData array. Further advice is
welcome.
Best wishes,
David Epstein
*on* a2
*lock* clipboard
*put* the keys of the clipboardData into myK1
*put* the keys of the fullClipboardData into
that are included on the clipboard.
David Epstein
___
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
To clarify my original question:
I'm not expecting the built-in paste command to handle this task; I'm
wondering if I can script my own paste command to handle it.
Richmond, I can write a script to "paste" an image by itself (by creating
an image and setting its text to clipboardData["image"]).
char 4097ff of String B;
âPNG
IHDR,,y}éu IDATxúÏΩ{¨mYv÷˜sƵˆ„ÏÛ∏˜ú{Îvuuwuπ‹.€Ìˆ«!,d«2$qä¯a«9éCj,d°!dÅ"EâàB
So my hope that String A could somehow be extracted from String B and used to
“paste” the included image was disappointed.
David Epstein
_
How can I redraw objects after the user has resized the stack, but not
continuously during the resize? Releasing the mouse at the end of a resize
does not appear to send a mouseUp message.
David Epstein
___
use-livecode mailing list
use-livecode
for
convenient use by LiveCode?
David Epstein
___
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
I didn’t text the speed, but why not
put fld A into x[1]
put fld B into x[2]
put fld C into x[3]
put fld D into x[4]
combine x by column
return x
>
> I have a set of fields, call them A, B, C, and D. Each has the same
> number of lines. Each field has different text (per line)
>
> I need to
rties is set?
David Epstein
___
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
not?
Or: how do I find the script that LC runs when the “New Widget/Chart” command
is chosen?
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http
ld trying to load a 2.1 GB variable in a field surpass the
4GB limit, because the variable and the field would each need 2.1 GB?
Best wishes,
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, un
that
this is impractical. But in order to design workarounds I’d like to get as
much clarity as possible on what limits I am working around.
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe
How many rows or columns or characters can reasonably be displayed in a
LiveCode field? A 1.39 GB text file seems pretty clearly to surpass the limit,
but how much do I need to subdivide it?
David Epstein
___
use-livecode mailing list
use-livecode
the problem has something to do with a message that calls a handler
in a stack-in-use.
Best wishes,
David
>
>
> On Thu, Jun 29, 2023 at 8:40?PM David Epstein via use-livecode
> mailto:use-livecode@lists.runrev.com>> wrote:
>>
>> I?ve just started using LiveCode 9.6.
the
widget’s name is not recognized as the name of a viewer when I try to call a
function like XPDFViewer_Get(viewerName,property).
So do I need either to create a widget or create a viewer? And are there
non-obvious reasons to do one or the other?
David Epstein
.”
I can click OK, but the error message soon returns.
Any suggestions?
Best wishes,
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http
. Confirm that the group’s lockLoc property is false. Then
with the browse tool, drag the button past the edge of the group. The button
disappears.
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url
of it) into it
close printing
end p1
This prints a full page at the proper size, but not with acceptable print
quality; everything is slightly blurred and pixellated. How can I get a good
quality printout?
David Epstein
___
use-livecode mailing list
use
at some level these methods all
amount to the same thing from the engine’s point of view (since everything is
in RAM in any case).
Many thanks.
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe
at a time with something like
send “upDateGroupLayout oneGroupID” to me in 10 milliseconds. Is that right?
David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
Let me try to clarify the problem I stated.
I am not trying to remove the button, I am trying to use the “grab” command to
let a user move the button around the window by dragging it.
If I use a script to “set the loc” of a button to somewhere outside that
group’s rectangle
- the group
84 matches
Mail list logo