Re: Bug in how LC handles sentences

2018-11-16 Thread Tore Nilsen via use-livecode
s 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 numb

Bug in how LC handles sentences

2018-11-16 Thread 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 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

Re: Stacks whose names start with "rev"

2018-09-27 Thread Tore Nilsen 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 th

Re: Creating Array - Auto Numeric

2018-09-18 Thread Tore Nilsen via use-livecode
rray? > > *on*mouseup > > *repeat* withy = 1tothenumberofwordsoffld"tQuote" > > *select*wordy offld"tQuote" > > * put*wordy offld"tQuote"&"|"& theselectedLoc& crafterwordLocationsA > > *end* *re

Re: Creating Array - Auto Numeric

2018-09-18 Thread Tore Nilsen via use-livecode
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 identifier

Re: This is disturbing!

2018-09-06 Thread Tore Nilsen via use-livecode
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

Re: This is disturbing!

2018-09-06 Thread Tore Nilsen via use-livecode
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

Re: This is disturbing!

2018-09-06 Thread Tore Nilsen via use-livecode
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 e

Re: Missing function selectedWords/selectedTrueWords

2018-08-31 Thread Tore Nilsen via use-livecode
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. O

Re: Missing function selectedWords/selectedTrueWords

2018-08-31 Thread Tore Nilsen via use-livecode
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

Re: Missing function selectedWords/selectedTrueWords

2018-08-31 Thread Tore Nilsen via use-livecode
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 > i

Re: Missing function selectedWords/selectedTrueWords

2018-08-31 Thread Tore Nilsen via use-livecode
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 sti

Re: Missing function selectedWords/selectedTrueWords

2018-08-31 Thread Tore Nilsen via use-livecode
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 >

Re: Missing function selectedWords/selectedTrueWords

2018-08-31 Thread Tore Nilsen via use-livecode
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

Missing function selectedWords/selectedTrueWords

2018-08-31 Thread Tore Nilsen via use-livecode
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 of

Re: Database data & emoji's

2018-08-14 Thread Tore Nilsen via use-livecode
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 microorganisms

Re: How to get LiveCode to return 'Today' & 'Now'?

2018-08-09 Thread Tore Nilsen via use-livecode
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 ele

Re: Too fundamental to be a bug, so what's wrong?

2018-07-30 Thread Tore Nilsen via use-livecode
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 untouc

Re: doMenu

2018-07-10 Thread Tore Nilsen via use-livecode
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 >>> : >>> >

Re: doMenu

2018-07-10 Thread Tore Nilsen 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 > use-

Re: [ANN] Release 9.0.1 RC-1

2018-07-09 Thread Tore Nilsen via use-livecode
> 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 fro

Re: Stripping styling from the clipboard...

2018-06-23 Thread Tore Nilsen via use-livecode
>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 try

The results are in.

2018-06-21 Thread Tore Nilsen 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 course

Re: Listfield Questions

2018-06-15 Thread Tore Nilsen via use-livecode
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

Re: Problems with jsonToArray and special chars like: æøå

2018-06-06 Thread Tore Nilsen via use-livecode
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 the

Problems with jsonToArray and special chars like: æøå

2018-06-06 Thread Tore Nilsen via use-livecode
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

Re: NavBar widget in LC9.0.0

2018-05-23 Thread Tore Nilsen 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 expected. My test stack just had

Re: How to dismiss keyboard on mobile

2018-05-10 Thread Tore Nilsen via use-livecode
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 > :

Re: Down a leafy lane or up queer street?

2018-04-29 Thread Tore Nilsen via use-livecode
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

Re: Down a leafy lane or up queer street?

2018-04-29 Thread Tore Nilsen via use-livecode
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 variabel.

Re: Down a leafy lane or up queer street?

2018-04-28 Thread Tore Nilsen via use-livecode
gt; 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 Nilsen via use-livecode wrote: >> What I do in thes

Re: Down a leafy lane or up queer street?

2018-04-28 Thread Tore Nilsen via use-livecode
pr. 2018 kl. 19:51 skrev Richmond Mathewson via use-livecode > : > > 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 pm, Tore Nilsen via use-livecode wro

Re: Down a leafy lane or up queer street?

2018-04-28 Thread Tore Nilsen via use-livecode
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 To

Audio recording fails when trying to record video

2018-04-03 Thread Tore Nilsen via use-livecode
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

Re: Blurring field contents

2018-03-29 Thread Tore Nilsen via use-livecode
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 > : > > I want to give users o

Re: Delete imported audioclips?

2018-02-06 Thread Tore Nilsen via use-livecode
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 > : > > Hi friends, > > obviously I

Re: How do I delete cloned images with the same name all at once?

2018-01-18 Thread Tore Nilsen via use-livecode
deleteImage > 18. jan. 2018 kl. 17:32 skrev Tore Nilsen via use-livecode > : > > 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 x is an integer then — you will then > keep th

Re: How do I delete cloned images with the same name all at once?

2018-01-18 Thread Tore Nilsen via use-livecode
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

Re: How do I delete cloned images with the same name all at once?

2018-01-17 Thread Tore Nilsen via use-livecode
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 tha

Re: Play WAV audio clips in iOS

2018-01-06 Thread Tore Nilsen via use-livecode
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 as

Re: Dissolve/Transitions Very Costly

2017-12-30 Thread Tore Nilsen via use-livecode
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 ref

Re: sorting with number late in name

2017-12-06 Thread Tore Nilsen via use-livecode
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, but had used "ascending" in the

Re: sorting with number late in name

2017-12-06 Thread Tore Nilsen via use-livecode
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 routines. > > If I have the ite

Re: Mac color chooser swatches do not work?

2017-12-05 Thread Tore Nilsen via use-livecode
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 friends, > > before I create a

Changing playLoudness has no effect on audioClips

2017-11-30 Thread Tore Nilsen via use-livecode
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 b

Re: mouseWithin and mouseLeave problem

2017-11-15 Thread Tore Nilsen via use-livecode
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. 20

Re: The coming of SVG

2017-11-05 Thread Tore Nilsen via use-livecode
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 about that. ___

Re: In GRAB control

2017-10-15 Thread Tore Nilsen 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 snippet" I think you will get t

Re: Rotating widgets

2017-10-14 Thread Tore Nilsen via use-livecode
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 > : > > But one cannot make a

Re: Rotating widgets

2017-10-14 Thread Tore Nilsen 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 kind

Re: Size restrictions when cloning or create a control in script

2017-10-02 Thread Tore Nilsen via use-livecode
> 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 use-livecode < > use-livecode@l

Size restrictions when cloning or create a control in script

2017-10-02 Thread Tore Nilsen 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 temp

Re: MacOS 10.13 crashes LC after color dialog

2017-09-28 Thread Tore Nilsen via use-livecode
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 > : > > Yup, same for me on Macbook Pro R

Re: mouseUp in a field

2017-09-03 Thread Tore Nilsen via use-livecode
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 mouseUp script . . . > > is this

Re: Background behavior use

2017-08-13 Thread Tore Nilsen via use-livecode
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 > : > > Folks: > I’m working with L

Re: Leslie Nielsen

2017-08-08 Thread Tore Nilsen via use-livecode
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 > : > > On 8/8/17 11:05 AM, Tore Nilsen

Re: Leslie Nielsen

2017-08-08 Thread Tore Nilsen via use-livecode
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 > : > > That's marvellous . . .

Re: Leslie Nielsen

2017-08-08 Thread Tore Nilsen via use-livecode
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 that that calls BOTH of the scrip

Re: FOR YOU: OSX-style push reorder of objects

2017-08-08 Thread Tore Nilsen via use-livecode
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 ins

Re: Recursive folder creation

2017-08-07 Thread Tore Nilsen via use-livecode
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

Re: Recursive folder creation

2017-08-07 Thread Tore Nilsen via use-livecode
+1 Tore > 7. aug. 2017 kl. 19:57 skrev Sannyasin Brahmanathaswami via use-livecode > mailto:use-livecode@lists.runrev.com>>: > > 2) Does it make sense to ask for an enhancement request for the engine to > recursively create folders for a path where itemdel "/" and items -1,-2,-3 > (sub folder

Re: Recursive folder creation

2017-08-07 Thread Tore Nilsen via use-livecode
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

Re: Sorting out the sheep from the goats

2017-08-07 Thread Tore Nilsen 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

Restrict navigation in browser widget

2017-07-26 Thread Tore Nilsen via use-livecode
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 u

Re: High Sierra & LC

2017-07-14 Thread Tore Nilsen via use-livecode
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 > 1

Re: High Sierra & LC

2017-07-14 Thread Tore Nilsen via use-livecode
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. 8.1.4 and 8.1.5 have issues > if

Re: High Sierra & LC

2017-07-14 Thread Tore Nilsen via use-livecode
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 Sierra and attempted to run 2

Re: [ANN] Release 8.1.6 RC-1

2017-07-11 Thread Tore Nilsen via use-livecode
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 th

Re: [ANN] Release 8.1.6 RC-1

2017-07-11 Thread Tore Nilsen 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 my

Re: Goofy question #7234

2017-07-10 Thread Tore Nilsen via use-livecode
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 this

Re: Exporting coloured text to HTML and RTF from 8.1.4

2017-07-02 Thread Tore Nilsen via use-livecode
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 ... url("binfile:" & it & ".rtf")? >> >> >>

Re: Exporting coloured text to HTML and RTF from 8.1.4

2017-07-02 Thread Tore Nilsen via use-livecode
enexitmouseUp > > else > > puttheRTFtextoffld "fRESULT" intourl("file:" & it & ".rtf") > > getthelongFilePathofit > > settheitemDelimitertoslash > > setthedefaultFoldertoitem 1 to-2 ofthelongFilePathofit > > endif > &g

Re: Exporting coloured text to HTML and RTF from 8.1.4

2017-07-02 Thread Tore Nilsen via use-livecode
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 rtfText

Re: Table Fields "and all"

2017-06-29 Thread Tore Nilsen via use-livecode
> 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 question. It's been so long since I too

Re: synonyms

2017-06-26 Thread Tore Nilsen 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 languages. And it also applies t

Re: English Like?

2017-05-25 Thread Tore Nilsen via use-livecode
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 > : >

Re: ANN: new team member

2017-05-11 Thread Tore Nilsen via use-livecode
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 > : > > Wait! You ha

Bug in the inspector palette

2017-04-17 Thread Tore Nilsen via use-livecode
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 propert

Re: Dragging widgets

2017-03-01 Thread Tore Nilsen via use-livecode
> 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 functionality we expect and get

Re: Yertle the Turtle

2017-01-30 Thread Tore Nilsen via use-livecode
> 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 the line, hide the line and unloc

Re: copyKey

2017-01-27 Thread Tore Nilsen via use-livecode
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 specifi

Re: side effect on mac with LC

2017-01-17 Thread Tore Nilsen via use-livecode
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 //Y

<    1   2