The point of any pass-handler is to pass the message to the next level in the
message hierarchy. If you pass a message and the engine has a generic routine
to handle this message, you may end up with unexpected behavior in your
application. There is no need to pass any message unless you
> 30. jan. 2017 kl. 21.20 skrev Richmond Mathewson via use-livecode
> :
>
> 2.2. I wonder how my turtle will be seen to draw a pen line from the two ends
> of the "line".
If you would like the “turtle” to move to the points of the line then, lock
screen, draw
What you can do is the following:
When the user pushes down you register the horisontal position of the pointer
and store this position for later use. This can be stored in a variabel or a
custom property like this:
global gStartH
on mouseDown
put the mouseH into gStartH
end mouseDown
I have come across what must be a bug in the IDE, in the inspector palette to
be precise. I have a script where I set some text properties of the
templateField on the fly, like font, size and color. These settings also affect
the objects of the “Basic" pane in the inspector, changing the
> 1. mar. 2017 kl. 20.40 skrev Sannyasin Brahmanathaswami via use-livecode
> :
>
> I just downloaded HYPE from Tumult: this is where some serious competition is
> coming from.
If animated content is what you want to build, then, yes. But it is nowhere
near the
You must make a group out of the element you would like to appear on all cards,
then set the group to behave like a background. You can turn a single object
into a group.
Regards
Tore Nilsen
> 13. aug. 2017 kl. 06:57 skrev William Prothero via use-livecode
> :
I have played a bit with the enhanced script editor and while I like the idea
with the handler lists I am not sure that the implementation is as good as it
could be.
I find it a bit confusing to see a list of handlers in the handler list without
any actual handlers in the script itself. From
Here is what I teach my students:
Use the function to return a value to the calling handler, set the properties
in the handler, not in the function itself, like this:
on mouseUp
set backgroundColor of this card to goRed()
end mouseUp
function goRed
return “red”
end goRed
The benefit of
9.0 db 8 and 8.14 and 8.15 opens fine in 64 bit mode, trying to set any color
via the color palette crashes any of these versions of LC.
Tore
> 14. jul. 2017 kl. 20:56 skrev Colin Holgate via use-livecode
> :
>
> 7.1.4 is intermittent, sometimes it opens fine.
At this stage in the development of High Sierra I guess it is hard to tell
whether or not difficulties in using LC or apps created with LC is caused by
bugs in the OS or incompatibilities in LC. I think their policy is to address
any incompatibilities in LC once the OS is out of beta.
Tore
>
I can not start any version of LC in beta 3 of High Sierra. In beta 1 and 2 LC
hung when I tried to access the color palette.
Regards
Tore Nilsen
> 14. jul. 2017 kl. 20:46 skrev Marty Knapp via use-livecode
> :
>
> I just downloaded the latest Mac OS beta - High
I am currently preparing the coursework for next years classes in programming.
Working with the browser widget, I am trying to restrict navigation in a a
widget to a specific domain, but have run into a problem I can not get my head
around. I use the browserNavigateBegin message to capture the
Just to make my points a bit clearer, here is a list of what enhancements to
the handler list I think will be helpful:
1. Put the list in a menu/scrolling list field above the current list showing
actual handlers in the script
2. Label this menu/list clearly as “Common handlers” to make sure
> 29. jun. 2017 kl. 21:29 skrev Richard Gaskin via use-livecode
> :
>
> hh wrote:
> >> RG wrote:
> >> The human mind can generally hold between three and seven things in
> >> conscious memory at any given time.
> >
> > How did you measure that?
>
> Good
How are you trying to export the text? Works alright here with Indy 8.1.4 and
MacOS 10.13.
Sample script that works for me:
on mouseUp
ask file "Give your file a name:”
put "file:" & it into tURL
if char - 1 to -4 of tURL <> ".rtf" then
put ".rtf" after tURL
end if
put
Your script works with both “file" and “binfile” here.
Regards
Tore
> 2. jul. 2017 kl. 18:38 skrev Richmond Mathewson via use-livecode
> :
>
> No, but I will.
>
> Richmond.
>
> On 7/2/17 7:07 pm, hh via use-livecode wrote:
>> Did you already try ...
esult= "cancel"
>
> thenexitmouseUp
>
> else
>
> puttheRTFtextoffld "fRESULT" intourl("file:" & it & ".rtf")
>
> getthelongFilePathofit
>
> settheitemDelimitertoslash
>
> setthedefaultFoldertoitem 1 to-2 ofthelongFil
To make this even simpler, since you already have a button containing the
script, button “masterscript”, you can just set the behavior of the other
controls to the button “masterscript”. You do not need to copy the script to
each button or control. You can do this in the advanced pane of the
useUp call:
on mouseUp pButton pAltKey
if pAltKey then
answer "Alt key was down"
else
answer "Alt key was up"
end if
end mouseUp
Regards
Tore
> 8. aug. 2017 kl. 20:23 skrev J. Landman Gay via use-livecode
> <use-livecode@lists.runrev.com>:
>
>
+1
Tore
> 7. aug. 2017 kl. 19:57 skrev Sannyasin Brahmanathaswami via use-livecode
> >:
>
> 2) Does it make sense to ask for an enhancement request for the engine to
> recursively create folders for a path where itemdel "/"
Since we do not need to check whether a folder exists or not before creating it
as LiveCode will not create duplicate folders, here is a script that will
create nested folders:
on mouseUp
put specialFolderPath("desktop")& "/testFolder/testOne/test/result" into
tFolder
set the itemDel to
Try this:
dispatch mouseUp to button "BASH" with true
Regards Tore
> 8. aug. 2017 kl. 17:54 skrev Richmond Mathewson via use-livecode
> :
>
> That's marvellous . . .
>
> as far as it goes:
>
> click at the loc of btn "BASH" with altKey
>
> The only "snag" is
And change the script in the BASH button to something like this:
on mouseUp pAltKey
if pAltKey then
answer "Alt key was down"
else
answer "Alt key was up"
end if
end mouseUp
> 8. aug. 2017 kl. 17:54 skrev Richmond Mathewson via use-livecode
>
I do not think that vowels are automatically detected, so you need to put the
chars representing vowel sounds into a variabel tVowels . Run a repeat for each
char tChar of the string and check if tChar is in tVowels, like this (using
Norwegian vowels as an example)
put “aeioyæøå” into tVowels
You can only create one folder at a time. You can not create nested folders in
one go.
So you need to do like this
put tDF & "/media/audio/nature/2017/" into tFolder
create folder tFolder
put “birds” after tFolder
create folder tFolder
Regards
Tore
>
> 7. aug. 2017 kl. 19:57 skrev Sannyasin
They come with just the OS, no supporting software is provided.
Congratulations to Ali. Hopefully he will find that improving on LiveCode is a
good way to make sleepless nights go so much faster.
Regards
Tore N
> 11. mai 2017 kl. 19.08 skrev Bob Sneidar via use-livecode
>
> 26. jun. 2017 kl. 19:59 skrev Mark Wieder via use-livecode
> :
>
> Limiting the language limits the ways in which a problem may be thought of -
> that's the basis of the linguistic relativism, and it applies to programming
> languages as well as to natural
I have on several occasions propagated this list to my computer science
students. Now I wonder whether it had not been just as appropriate to tell my
English students that they would benefit from joining this list.
Tore Nilsen
> 25. mai 2017 kl. 23.35 skrev Dr. Hawkins via use-livecode
>
You would probably be better off using a transparent png-image that is square
for the clock hand, and where the rotation point of the clock hand was at the
center of the square. You could then put the clock hand on top of the clock
face and rotate the hand at will. My students hand the same
That is why I suggest using a png-file, where all but the hand is transparent.
Setting the resizeQuality to best should give a good result without reducing
the speed of any animation you do.
Tore
> 14. okt. 2017 kl. 21:06 skrev Richmond Mathewson via use-livecode
>
Try on mouseMove instead of on grab:
on mouseMove
if the mouse is down — to make sure you are holding on to something
your code goes here
end if
end mouseMove
Tore
> 15. okt. 2017 kl. 19:07 skrev Richmond Mathewson via use-livecode
> :
>
> If you try that "code
It has been like this since the second developer beta of MacOS 10.13. In the
very first developer beta of MacOS 10.13, LC would crash before it managed to
open the color picker.
Tore Nilsen
> 29. sep. 2017 kl. 07:22 skrev Roger Guay via use-livecode
> :
>
>
One of my students have come across what may be a bug. When trying to clone a
control where width/height is less than 9, LiveCode reverts to default sizes
set in the preferences for that particular control. The same happen if you try
to create a new control by setting the with/height of the
ivecode/livecode-ide/pull/1501
>
> You can modify the file
> "/Contents/Toolset/libraries/revbackscriptlibrary.livecodescript" locally
> in LC 8.x if you want to back port this change.
>
> Best,
> Panos
> --
>
> On Mon, Oct 2, 2017 at 2:32 PM, Tore Nilsen via
textLock of the field has to be set to true in order to get the field recognize
a mouseUp.
Tore
> 3. sep. 2017 kl. 19:43 skrev Richmond Mathewson via use-livecode
> :
>
> I am able to run a *mouseDown* script when I click on a field,
> but seem unable to run a
But Alejandros script also works when you have scrolled up or down and release
the mouse outside of the scrollbar without moving the cursor into the field
area first. . Otherwise width of the scrollbar would have stayed at 30 until
next time the field received a mouseLeave message
> 15. nov.
According to the dictionary, changing the playLoudness would effect both player
controls and audioClips. The following script seems to indicate that the
playLoudness is in fact set, but the there are no change in sound volume, even
though playLoudness seems to be reduced as expected. Is this a
Please consider it very carefully! Do not proceed until you have found a proper
replacement.
Tore
> 5. nov. 2017 kl. 20:24 skrev J. Landman Gay via use-livecode
> :
>
> It did occur to me that if I kill Mark my career will be cut short. I have to
> think
Seems as if you are right, I cannot use the swatches either in LC 8.2 (dp2)
with MacOS 10.13 beta (17A360a). Using the eyedropper tool to pick the colour
from the swatches works here.
Tore
> 5. des. 2017 kl. 22:55 skrev Klaus major-k via use-livecode
> :
>
> Hi
Ascending is implied when you sort numeric.
If you want to sort it the other way round use: sort lines of fld 1 numeric
descending by item 2 of each
Tore
> 7. des. 2017 kl. 00:47 skrev Dr. Hawkins via use-livecode
> :
>
> Yes, that did it. I had the item del,
You could always try to set the itemDelimiter to _ and then sort the lines
numeric by last item of each.
Tore Nilsen
> 7. des. 2017 kl. 00:29 skrev Dr. Hawkins via use-livecode
> :
>
> Now that I've hit ten numbered items, I'm having an issue with
> maintenance
You could also try:
on returnInField
focus on nothing
end returnInField
in the field script. That seems to do the trick on desktop at least, whereas on
returnKey does not when it is placed in the field script.
Tore Nilsen
> 10. mai 2018 kl. 23:44 skrev J. Landman Gay via use-livecode
>
I did the same test on MacOS 10.13 and LC 9.0.0. Everything works as expected
here.
Best,
Tore Nilsen
> 24. mai 2018 kl. 07:47 skrev Brian Milby via use-livecode
> :
>
> I ran the test on Linux and Win10 with the same result. The icon highlight
> moved along as
I have run into a problem with jsonToArray and the special Norwegian chars æøå.
They do not show up in the keys of the array when the array is made from an
external file. The external file is generated by LiveCode and the arrayToJSON
function. All text are encoded to “UTF-8” before the array is
Hi Panos.
This does not work, and it is somewhat similar to what I tried initially,
although I am certain I should use textDecode when importing text to LiveCode,
as per the Dictionary. Also note that tFile only holds the url to the file
containing the JSON, and your suggestion only encodes
A selectionChanged handler in the list field will take care of that.
Tore
> 16. jun. 2018 kl. 06:31 skrev Charles Szasz via use-livecode
> :
>
> Thanks Richard for your help. Unfortunately, using keyboard arrow keys may
> hilite a line but it does not put a value associated with the line into
>From the dictionary:
The LiveCode development environment traps the pasteKey message <>, unless
"Suspend LiveCode UI" is turned on in the Development menu. This means that the
pasteKeymessage <> is not received by a stack <> if it's running in the
development environment <>.
So if you are
The variabel scope can be a bit tricky. The difference between a script local
variabel (declared as a local variabel outside any handlers) and a global
variabel can be confusing. They act very much the same way when used within one
script. The main difference being that a global variabel can be
If route66 is declared as a local variabel in the card script (and it must be
declared outside any handlers), then all other scripts that uses this variabel
must reside in the card script as well. If it is declared as a global variabel,
it must be declared in all scripts that uses this
Try this:
local sFolderPath
on preOpenStack
put specialFolderPath("resources")&"/myCrap/rez/" into sFolderPath
end preOpenStack
specialFolderPath(“resources”) will point to the folder containing the stack
when you are in the IDE, and to the resources folder of your compiled
application
pr. 2018 kl. 19:51 skrev Richmond Mathewson via use-livecode
> <use-livecode@lists.runrev.com>:
>
> In theory that should work . . .
>
> But what happens is that I end with a grey square rather than the actual
> picture.
>
> Richmond.
>
> On 28/4/2018 8:42
gt; ("p11")
>
> having had
>
> setthefileNameofimg "p11" tosFolderPath & "c11.png"
>
> in the openCard script
>
> I see that its source is listed as sFolderPathc11.png
>
> Richmond.
>
>
> On 28/4/2018 8:55 pm, Tore Nilse
It may also help to lock the screen for visual effect within a given rectangle,
thereby reducing the number of pixels that need to be updated. If the images
are of equal dimensions and with the same loc, you can refer to the rect of one
of them, otherwise you can have an invisible graphic as
When you import an audio file into the stack as a control you need to use:
play audioClip "the name of your imported sound”, as the imported file becomes
an audio clip. The dictionary is somewhat confusing when it comes to support
for audio clips om mobile platforms. If you look at audioClip
deleteImage
> 18. jan. 2018 kl. 17:32 skrev Tore Nilsen via use-livecode
> <use-livecode@lists.runrev.com>:
>
> on deleteImage
> put the number of images of this card into tImages
> repeat with x = sImages down to 1
> if last char of the short name of image
You do need to count down to 1, otherwise the counter x will become greater
than the number of images you have on the card, halfway through the repeat
loop. There is also no need to get the ID (neither the long or short ID) as you
can simply refer to the image by its number (the counter x). The
The property “name” refers to more than “ticket”, it also includes the
description of the control, in your case the name will be “image ticket”.
You also will need to count down from the number of images in order to delete
all of them, otherwise you will run into a situation where x is higher
Right click or control click the file i project browser and use clear from the
menu. You may have to reload the PB to see that the clip is deleted.
Best regards
Tore Nilsen
Sendt fra min iPhone
> 6. feb. 2018 kl. 23:08 skrev Klaus major-k via use-livecode
> :
>
The academic year has come to an end in Norway, and the results from various
exams have just been released. I am happy to say that my Computer Science
students have ended this year on a high note, with 55% of them scoring an A or
A+ for their final exams. All students participating in the
I have not encountered any differences in how variables are declared from LC 7
to LC 8 or LC 9. It works fine here both in LC 8.1.8 and in LC 9.0.1 (RC) with
MacOS 10.14 Beta
Best regards
Tore Nilsen
---
This mail contains no viruses or bacteria as it is electronically produced and
Use any form of the date (short, long,international,system) for today, an any
form of the time (short, long,international,system) for the time. To see the
difference between them look them up in the dictionary.
Regards
Tore Nilsen
---
This mail contains no viruses or bacteria as it is
You should look up textEncode and textDecode in the dictionary. I think they
may prove useful.
Best regards
Tore Nilsen
---
This mail contains no viruses or bacteria as it is electronically produced and
untouched by human hands. Once printed it may or may not contain various
Microsoft Word seems to behave the way you suggest, in the sense that if any
given text style is present among the words in the selection then it is
removed. Pages behaves differently. If a given text style is true for some of
the words in the selection, Pages will initially keep this style for
I am struggling with a problem related to the selection of parts of a text in a
field. I would like to know which words are selected, that is, I would like to
know the range of words selected. None of the functions available in LiveCode
will do this. If I use selectedChunkI will get the range
I got a bit confused there. Pages behaves as you say, Microsoft Word would turn
off bold on the initial push of the button, then adding bold to the styles the
next time.
This is why I thought I needed to find the style of each word in a group of
words when the the textStyles is mixed. And I
Beats "looping around» all the text any day! I think I can use this with my
students in a couple of months time. For now, I think I have to stick to the
more basic tasks of just altering fonts, text size, text color and text styles
for single word selections.
Best Regards
Tore Nilsen
>
We certainly are. I can already think of several sarcastic phrases to use,
should the situation call for it! :) And since my students all know me well
enough from earlier years, they will expect as much.
Tore
> 31. aug. 2018 kl. 22:13 skrev Mark Waddingham via use-livecode
> :
>
> P.S.
018 kl. 22:00 skrev Mark Waddingham via use-livecode
> :
>
> On 2018-08-31 20:51, Tore Nilsen via use-livecode wrote:
>> I got a bit confused there. Pages behaves as you say, Microsoft Word
>> would turn off bold on the initial push of the button, then adding
>> bo
The array form may well be what I need. I do think I still will have to wait
some time before I introduce it to my students.
Best regards
Tore
> 31. aug. 2018 kl. 21:39 skrev Mark Waddingham via use-livecode
> :
>
> The key thing here is that using the array form of textStyle treats each
>
use-livecode
> :
>
> If I put anything else in place of the dot, I get a fail, but with the dot,
> i get true
>
> On Thu, Sep 6, 2018 at 11:55 AM Tore Nilsen via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> It seems to only compare the
It seems to only compare the integer part of the statements. If you substitute
the integer with a letter, then it reports false. But still strange as the
quotation marks should indicates that this is a string.
Best regards
Tore Nilsen
---
This mail contains no viruses or bacteria as it is
and
untouched by human hands. Once printed it may or may not contain various
microorganisms that can cause diseases. Print and hand out at own risk.
Unsolicited distribution of this mail is prohibited.
> 06. sep. 2018 kl. 18:02 skrev Tore Nilsen via use-livecode
> :
>
> I think thi
c "zzz"
> set the points of grc "zzz" to fld "PTZ"
> end mouseUp
>
> Richmond.
>
> On 10/7/2018 12:07 pm, Tore Nilsen via use-livecode wrote:
>>> 10. jul. 2018 kl. 10:43 skrev Richmond via use-livecode
>>> :
>>>
>
> 10. jul. 2018 kl. 10:43 skrev Richmond via use-livecode
> :
>
> Is it possible to send a *doMenu* command to a menu item several levels down?
>
> Such as *Object/New Control/Radio Button* ?
>
> Richmond.
>
> ___
> use-livecode mailing list
>
> 10. jul. 2018 kl. 00:41 skrev Mark Wieder via use-livecode
> :
>
> Well, sure... at a higher latitude the electrons don't have as far to go.
That must be why I can report even better times (approx 1:30) than Phil Davis.
I am at sea level, but on the west coast of Norway, so not very far
I am currently trying to help one of my students with setting up a camera
control to record video. We have been able to set up a camera control to record
video, but no sound is recorded. According to the dictionary an audioDevice ID
should be set in order to record sound as well as video. Using
Why not just hide the fields in question before exporting the snapshots and
then showing them after the export is done? This way you do not have to work
with the exported image.
Regards
Tore Nilsen
> 29. mar. 2018 kl. 17:35 skrev David V Glasgow via use-livecode
>
> 27. sep. 2018 kl. 21:08 skrev J. Landman Gay via use-livecode
> :
>
> Some of my client's stacks must begin with names starting with "rev" (i.e.,
> Bible study, "Revelations".)
Why does the stack itself need to be called «Revelations»? Could it be a word
around just to set the title of
Depending on the action the user might take, have you tried:
wait until the mouse is down
Best regards
Tore Nilsen
> 31. des. 2018 kl. 14:39 skrev Sannyasin Brahmanathaswami via use-livecode
> :
>
> If you issue a
>
> Wait for 3 seconds with messages
>
> And, after 1 second, the users
I had the same problem as you, and I used the Adobe Unistaller Program to
remove all traces of Adobe Acrobat. This worked for me. You could try to
reinstall Acrobat and then use the Uninstaller to remove it again. This has
done the trick for me at times when I simply cannot find the file(s)
Try to remove the Adobe Acrobat (Reader) Plug-in from the Internet Plug-ins
folder in the Library folder. Restart the application and see if that helps.
Alternatively you could try to uninstall Acrobat altogether.
Best regards
Tore Nilsen
> 05. jan. 2019 kl. 23:01 skrev Simon Knight via
> 11. des. 2018 kl. 23:28 skrev Bob Sneidar via use-livecode
> :
>
> I think if you double click it and get the unsafe app dialog, you can open
> Security & Privacy, and there should be a button to approve the most recent
> "unsafe" app.
Not in High Sierra or Mojave. The only options are
You can easily run an unsigned app on High Sierra or Mojave. But you can not
start the application by double clicking it the first time you run it. You need
to open it from a contextual menu (right click or ctrl click) and then choose
«Open» in the resulting dialog window. Afterwards you can
You are right, there was this third option prior to High Sierra. I agree that
if you distribute an application as a professional developer, you need to code
sign it.
Tore Nilsen
> 11. des. 2018 kl. 23:26 skrev Knapp Martin via use-livecode
> :
>
> I think on Sierra and older there was a
> 11. des. 2018 kl. 23:40 skrev Bob Sneidar via use-livecode
> :
>
> I'm on High Sierra, and that is how it works for me.
>
> Bob S
I am on Mojave now, so I may remember wrongly about High Sierra, but the
contextual menu method works on both of them anyhow.
Tore
The selectedChunk is probably what you are looking for.
Regards
Tore Nilsen
> 14. des. 2018 kl. 15:28 skrev Kaveh Bazargan via use-livecode
> :
>
> I am stuck on something that should be simple. User has selected a text,
> say a word in a field. How do I get the offset of the start and
One of my students has a problem with LiveCode crashing on startup. He uses a
machine running Windows, and I suspect there might be a corrupt preference file
involved, as LiveCode dies right after it has loaded the preferences. Since I
have no experience in using LiveCode on Windows, I have not
veCode versions < 7
>>
>> I suggest:
>>
>> 1. Quit LiveCode
>> 2. Delete/rename both of these files. These files will be created/updated
>> every time you start/quit LiveCode.
>> 3. Launch LiveCode
>>
>> Hopefully the problem should be fixed now.
I have come across a puzzling phenomenon in how the browser widget handles
pdfs. On my iMac I do no have Adobe Reader or Adobe Acrobat installed. Here,
the browser widget displays pdf-files without any hiccups. On my MacBook I have
Adobe Acrobat installed, and the browser widget seems to use
on your Mac?
>
> Thanks,
> Brian
> On Nov 22, 2018, 11:53 AM -0500, Tore Nilsen via use-livecode
> , wrote:
>> I have come across a puzzling phenomenon in how the browser widget handles
>> pdfs. On my iMac I do no have Adobe Reader or Adobe Acrobat installed. Here,
&
the pdf-files
displayed without all the bells and whistles provided by the plugin.
Best regards
Tore Nilsen
> 22. nov. 2018 kl. 18:06 skrev Klaus major-k via use-livecode
> :
>
> Hi Tore,
>
>> Am 22.11.2018 um 18:01 schrieb Tore Nilsen via use-livecode
>
e ends with anything but full stop. A sentence may well start with a
number!
Best regards
Tore Nilsen
> 17. nov. 2018 kl. 00:22 skrev Tore Nilsen via use-livecode
> :
>
>
> I have come across what I think must be a bug in how LC handles sentences.
> When a sentence begins with a n
After some thinking I actually do agree it is not a bug. The problem being that
full stop (period) can also be used in abbreviations, and numbers can follow
immediately after such abbreviations.
Tore
> 17. nov. 2018 kl. 00:36 skrev Tore Nilsen via use-livecode
> :
>
> I wou
I have come across what I think must be a bug in how LC handles sentences. When
a sentence begins with a number, it is not counted as a sentence if the
previous sentence ends with a full stop. If the previous sentence end with a
question mark or an exclamation mark, then the sentence starting
When using a field with close to 45000 lines, the second (using the lines of
the field) version takes on average 23 milliseconds, whereas using a variable
takes on average 15 milliseconds. For a field /variable with 5000 lines the
difference is about 2 milliseconds here. The actual speed and
You can not put the incrementing numeric key inside an associative array the
way you want. The key of any array must be unique, and you can not have several
instances of a key in an array. Think of the keys of the array it as the
primary keys of a database table. It serves as a unique
rray?
>
> *on*mouseup
>
> *repeat* withy = 1tothenumberofwordsoffld"tQuote"
>
> *select*wordy offld"tQuote"
>
> * put*wordy offld"tQuote"&"|"& theselectedLoc& crafterwordLocationsA
>
> *end* *re
When one of my students tried to use grab me command in a mouseDown handler on
a SVG widget, some strange things happened. In run-mode, the script did not
work as expected. The widget would not move with the mouse. When switching back
to edit mode, the widget started to move with the mouse
Thanks for your explanation. Since my student does not need any handlers (in
fact would not want any handlers added to the widgets), the examples from
«ControlHandles89» could not be used.
The simple solution was to «group» each individual SVG widget and add the grab
me command to the group.
My mistake, I meant handles, not handlers. The widgets are used to display
chess pieces. The actual script «controlling" each widget/group is a behavior,
where the script itself resides in a button script.
Best regards
Tore
> 21. feb. 2019 kl. 18:36 skrev hh via use-livecode
> :
>
>> Tore
1 - 100 of 182 matches
Mail list logo