Re: "within graphic" question

2021-02-22 Thread Tore Nilsen via use-livecode
> 22. feb. 2021 kl. 21:26 skrev Tore Nilsen via use-livecode > : > > > >> 22. feb. 2021 kl. 21:14 skrev Richard Gaskin via use-livecode >> : >> >> jbv wrote: >>> I have a graphic made of a list of points. This graphic is opaque >&

Re: "within graphic" question

2021-02-22 Thread Tore Nilsen via use-livecode
> 22. feb. 2021 kl. 21:14 skrev Richard Gaskin via use-livecode > : > > jbv wrote: >> I have a graphic made of a list of points. This graphic is opaque >> and invisible, its filled property is set to true (according to >> the doc). >> In my card script I have something like : >> on mousedown

Re: LC Roadmap

2021-02-14 Thread Tore Nilsen via use-livecode
I am currently working as a teacher in an upper secondary school in Norway. I teach Computer Science and languages like English and Norwegian. Besides working as a teacher for more than 20 years, I have also experience from running various businesses. The combination of the two very different,

Re: Close Stack Cleanup

2021-02-04 Thread Tore Nilsen via use-livecode
Performing the clean up in preOpenStack makes it happen before the stack is visible, at least according to the dictionary. "Unlike openStack <>, preOpenStack handlers <> are executed <> before the stack window <> appears. Because of this, the preOpenStack handler <> is a good place to put code

Re: Close Stack Cleanup

2021-02-04 Thread Tore Nilsen via use-livecode
I follow a similar approach to what Curry describes here, keeping it modular, but I do not do any clean up at closing time. Instead I execute the necessary routines as part of a preOpenStack handler. I then do not have to consider which way the stack was closed. This is also what I encourage my

Re: lock screen

2021-01-22 Thread Tore Nilsen via use-livecode
I forgot to write that you import a snapshot of the widget before you set out to perform the visual effect. > 22. jan. 2021 kl. 17:54 skrev Tore Nilsen : > > The browser widget is drawn in a layer of its own and is not affected by lock > screen. If you need to do a visual effect you then hide

Re: lock screen

2021-01-22 Thread Tore Nilsen via use-livecode
The browser widget is drawn in a layer of its own and is not affected by lock screen. If you need to do a visual effect you then hide the widget itself and perform the visual effect on the snapshot. You can then delete the snapshot when it is no longer needed. Best regards Tore Nilsen > 22.

Re: GRID and GRIDSIZE

2021-01-20 Thread Tore Nilsen via use-livecode
> 20. jan. 2021 kl. 21:52 skrev Richard Gaskin via use-livecode > : > > I was asking what you wanted the grid snap feature to do beyond working only > in Pointer mode. One could think that the grid snap feature would work in Run mode in the IDE if scripts would allow the user to move

Re: Building a Standalone MacOS App in 9.6.1

2021-01-06 Thread Tore Nilsen via use-livecode
> 6. jan. 2021 kl. 15:48 skrev Paul Dupuis via use-livecode > : > > macOS Catalina or Big Sur apps have to be code signed AND notarized. You must > have the command line tools installed and there is a non-trivial number of > commands you have to execute to prepare you app for code signing,

Re: move cursor to the end of a line in a field

2020-12-23 Thread Tore Nilsen via use-livecode
:49 skrev Tore Nilsen via use-livecode > : > > > >> 23. des. 2020 kl. 20:57 skrev Douglas A. Ruisaard via use-livecode >> : >> >> "rawKeyDown" tells me the raw key is 65367 ... but how do I "send" a rawkey >> value to the active fiel

Re: move cursor to the end of a line in a field

2020-12-23 Thread Tore Nilsen via use-livecode
> 23. des. 2020 kl. 20:57 skrev Douglas A. Ruisaard via use-livecode > : > > "rawKeyDown" tells me the raw key is 65367 ... but how do I "send" a rawkey > value to the active field? Or, ideally, can someone tell me how to > "emulate" the "END" key and position the cursor at the end of the

Re: Double Clicking on a Field

2020-12-04 Thread Tore Nilsen via use-livecode
Try this in the script of the field: on mouseUp —do your scrolling thing End mouseUp on mouseDoubleUp — do your navigation between cards End mouseDoubleUp Best regards Tore Nilsen > 4. des. 2020 kl. 15:14 skrev Sannyasin Brahmanathaswami via use-livecode > : > > I want a user to

Re: Audio recording in LC community on Windows?

2020-11-02 Thread Tore Nilsen via use-livecode
Feature parity between Mac and Windows is a necessity for me as well. I teach at an upper secondary school (high school) in Norway, and we are obliged to use software that supports both platforms, as students bring their own computers and should not be required to install two OS-es to do their

Re: Is the DateFormat read only?

2020-10-29 Thread Tore Nilsen via use-livecode
29 Oct 2020, at 09:29, Graham Samuel via use-livecode >> wrote: >> >> Thanks Tore - I had forgotten the existence of dateItems. That of course >> will do the trick. BTW I was trying to create dates in standard UTC format, >> and now I can. >> >>

Re: Is the DateFormat read only?

2020-10-28 Thread Tore Nilsen via use-livecode
You can convert any given date to dateItems. Then you can use dateItems to present the date in any format you like. A date converted to dateItems will give you the following list of items: the year the month number the day of the month the hour in 24-hour time the minute the second the numeric

Re: How to divide card with/in 3 vertical lines?

2020-10-28 Thread Tore Nilsen via use-livecode
You could of course also multiply the width of the card with 0.25, 0.5 and 0.75 to get the same results. Personally I prefer multiplication to division, but the results will be the same. Best regards Tore Nilsen > 28. okt. 2020 kl. 21:54 skrev William de Smet via use-livecode > : > > Thanks

Re: Correct use of string A 'is in' string B?

2020-10-14 Thread Tore Nilsen via use-livecode
take a break and check > for updates on my eyeball firmware! :-D > Best, > Keith > >> On 14 Oct 2020, at 12:04, Tore Nilsen via use-livecode >> wrote: >> >> In the url itself you use access_token but in your search you use >> access_code. May thi

Re: Correct use of string A 'is in' string B?

2020-10-14 Thread Tore Nilsen via use-livecode
In the url itself you use access_token but in your search you use access_code. May this be the reason for your problems? Best regards Tore Nilsen > 14. okt. 2020 kl. 13:00 skrev Keith Clarke via use-livecode > : > > Hi folks, > Am I misreading the docs and abusing the 'is in' logic or syntax

Re: backKey with DataGrid

2020-10-06 Thread Tore Nilsen via use-livecode
This is a shot in the dark but this may have to do with the fact that once the dataGrid is in focus the template stack for the dataGrid becomes the recipient of your backKey message. Have you tried to add a backKey message to the template stack, and tweaking it to reference the button of the

Re: Problem an Repeat Loop

2020-09-27 Thread Tore Nilsen via use-livecode
You do not refer to any object type when you try to set the fileName of what should possibly be an image. Try this: Set the fileName of image sStoryImage to tPath Best regards Tore Nilsen > 28. sep. 2020 kl. 03:47 skrev Sannyasin Brahmanathaswami via use-livecode > : > > # for development

Re: Looking for LiveCode developer in Norway, Stavanger area

2020-09-02 Thread Tore Nilsen via use-livecode
And I thought I was the only person in Rogaland County using LiveCode. I have been teaching Information Technology at an upper secondary school in Haugesund for the last seven years, using LiveCode. I would very much like to keep tabs on what you are doing. It may be of interest to both me and

Re: Wrapping Text

2020-07-22 Thread Tore Nilsen via use-livecode
In order for this to work you should also take into consideration various rules for hyphenating words in the appropriate language. As these rules varies between languages, this can become a very complex function. If the text that goes into the field is static then I would either reduce the font

Re: Downloading LiveCode Slow...

2020-07-08 Thread Tore Nilsen via use-livecode
I got + - 10MB/sec from Norway. Downloaded the Business Edition in under 1 min. Tore Nilsen > 7. jul. 2020 kl. 23:46 skrev Rick Harrison via use-livecode > : > > I was wondering if anyone has tried to > download any version of LiveCode from > the website recently. I just tried today > and it

Re: [off-topic-ish] do you prefer LC-related content as books or video courses?

2020-07-07 Thread Tore Nilsen via use-livecode
Hi Andre! As others have pointed out, whether to go for a text based or a video based course, very much depends on your target audience. I like Richards proposal of using LiveCode as the framework for a course. This way you can in fact utilize the strengths of both formats. You can present

Re: Browser Widget iOS Local Html Files

2020-06-29 Thread Tore Nilsen via use-livecode
t; -Original Message- > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf > Of Tore Nilsen via use-livecode > Sent: Monday, June 29, 2020 4:39 PM > To: How to use LiveCode > Cc: Tore Nilsen > Subject: Re: Browser Widget iOS Local Html File

Re: Browser Widget iOS Local Html Files

2020-06-29 Thread Tore Nilsen via use-livecode
Have you tried to set the url of the widget to tTemp. This actually loads the page in the widget as if it was any browser. Tore > 29. jun. 2020 kl. 21:56 skrev Ralph DiMola via use-livecode > : > > LC 9.6.0 > > I can't get a local html file to load in iOS browser widget. This is the > first

Re: HTML Colour Groups

2020-05-31 Thread Tore Nilsen via use-livecode
You try to sign a value to tColor with the command set. The right command is put, as in this example, this works on my end: put "#FFC0CB" into tColor set the backgroundcolor of graphic 1 to tColor Best regards Tore Nilsen > 31. mai 2020 kl. 18:13 skrev Terence Heaford via use-livecode > :

Re: Changing text properties in a field via the IDE

2020-05-19 Thread Tore Nilsen via use-livecode
I was trying the same thing in LC 9.6 (dp4) and it works here. It works both when selecting the text in the text pane in the navigator or selecting text in the field itself. Regards Tore Nilsen > 19. mai 2020 kl. 19:53 skrev Richard Gaskin via use-livecode > : > > I just tried this recipe: >

Re: Changing text properties in a field via the IDE

2020-05-19 Thread Tore Nilsen via use-livecode
I am not sure this is a bug. When you use the normal paste function you actually paste in styled text. New text, following the text you pasted in will inherit the styling of the last character of the text you pasted into the field. This then would work the same way as if you selected some text

Re: Dark Mode Detection

2020-04-17 Thread Tore Nilsen via use-livecode
I guess it means that you can make an application that detects whether or not the user system is running in dark mode and write your own code to set the properties of your application accordingly. It means that you can write applications that are aware of the mode on the user system. Best

Re: Building a Board Game

2020-04-07 Thread Tore Nilsen via use-livecode
What I do is to make a grid of named rectangles (they may or may not be visible). I put the names of these into a variable or an array. On mouseUp I traverse the variabel/array to check if the mouseLoc is within any of the rectangles. When there is a match I set the loc of the grabbed control

Re: Ordering text

2020-03-29 Thread Tore Nilsen via use-livecode
I believe the reason for the delay comes from the fact that when sorted descending, you put tRec & CR before tCellData. Tp put something before a container is slower than putting something after a container. Regards Tore Nilsen > 29. mar. 2020 kl. 13:06 skrev Terence Heaford via use-livecode

Re: DataGrid question...

2020-03-25 Thread Tore Nilsen via use-livecode
What you should look for in the Dictionary is tabAlign Tore > 25. mar. 2020 kl. 13:32 skrev matthias rebbe via use-livecode > : > >> >> Am 25.03.2020 um 01:26 schrieb Richard Gaskin via use-livecode >> : >> >> Paul Dupuis wrote: >> >>> Has anyone come up with a way to configure a DataGrid

Re: Cannot identify the Menubar button clicked under Mac OS

2020-02-26 Thread Tore Nilsen via use-livecode
I have submitted a comment to this now. Best regards Tore Nilsen > 26. feb. 2020 kl. 11:15 skrev Heather Laine via use-livecode > : > > If this is a screensteps lesson in our portal, please leave a comment on it. > We review all comments and action them where necessary. > > Regards, > >

Re: Cannot identify the Menubar button clicked under Mac OS

2020-02-25 Thread Tore Nilsen via use-livecode
> 25. feb. 2020 kl. 17:57 skrev Richard Gaskin via use-livecode > : > >Cross-platform note: When a menu button is being displayed in >the Mac OS menu bar, it does not receive mouseDown messages, >but its group does. For this reason, this example handler >should be placed in the

Re: Synchronisation of sound and vision

2020-02-12 Thread Tore Nilsen via use-livecode
; > You can do audio recording on Mac now using the mergMicrophone library. It > works great, and I believe is available in every edition of LC, including > Community. > > Devin > >> On Feb 12, 2020, at 12:11 PM, Tore Nilsen via use-livecode >> wrote: >>

Re: Synchronisation of sound and vision

2020-02-12 Thread Tore Nilsen via use-livecode
he great things about LiveCode is that there is almost always more > than one way to do what you want. > > Regards, > > Devin > > > On Feb 12, 2020, at 9:55 AM, Tore Nilsen via use-livecode > mailto:use-livecode@lists.runrev.com>> wrote: > > Using callbac

Re: Synchronisation of sound and vision

2020-02-12 Thread Tore Nilsen via use-livecode
ical solution for a large body > of work (say all the Shakespeare sonnets, for example). > > Anyway thanks for the hint. > > Graham > > On 12 Feb 2020, at 12:16, Tore Nilsen via use-livecode > mailto:use-livecode@lists.runrev.com>> wrote: > > You will have to

Re: Synchronisation of sound and vision

2020-02-12 Thread Tore Nilsen via use-livecode
> Graham > >> On 12 Feb 2020, at 12:16, Tore Nilsen via use-livecode >> wrote: >> >> You will have to use the callbacks property of the player to do what you >> want to do. The callbacks list would be your cues. From the dictionary: >> >> The ca

Re: Synchronisation of sound and vision

2020-02-12 Thread Tore Nilsen via use-livecode
You will have to use the callbacks property of the player to do what you want to do. The callbacks list would be your cues. From the dictionary: The callbacks of a player <> is a list of callbacks, one per line. Each callback consists of an interval number, a comma, and a message <> name.

Re: Option menu in datagrid

2020-02-11 Thread Tore Nilsen via use-livecode
You can also set the text of the button in a mouseDown handler in the button itself. This works well if you have more than one option menu and the options in one of them depends on the selections the user has made in another. The script will be similar to the one provided by Sri. Regards Tore

Re: Something wrong with LiveCode 9.5.1

2019-12-16 Thread Tore Nilsen via use-livecode
This is not very odd. It is the way MacOs now handles all applications that are not notarized. I would suspect this kind of message for any dp or rc version of LiveCode, but not for a stable version. You can get around this either by right-clicking the application and choose «Open» from the

Map widget and user location

2019-12-05 Thread Tore Nilsen via use-livecode
I am trying to familiarise myself with the map widget. What I want to do is to get the coordinates for the user location and to set a pin for this location. As it is possible to show the user location in the map widget, my original idea was to retrieve the information from the widget and apply

Re: just a test...

2019-11-24 Thread Tore Nilsen via use-livecode
As did I Regards Tore Nilsen > 24. nov. 2019 kl. 20:04 skrev Brian Milby via use-livecode > : > > I got this one > > Thanks, > Brian > On Nov 24, 2019, 1:21 PM -0500, Klaus major-k via use-livecode > , wrote: >> my last two mails do not show up here one the list? >> >> -- >> Klaus Major >>

Re: Primary Student Livecode Interface (Simplified Developer Interface)

2019-10-10 Thread Tore Nilsen via use-livecode
Hi! I teach a beginners course in programming on highschool level in Norway. Just like Devin, I have found that the most important thing is what you want your students to learn. The development environment is not very important. I try to introduce various components in a way that helps build

Re: CTD meaning?

2019-06-28 Thread Tore Nilsen via use-livecode
What good have the crashes ever done to us? Tore Nilsen > 28. jun. 2019 kl. 19:40 skrev Mark Wieder via use-livecode > : > > On 6/28/19 10:21 AM, J. Landman Gay via use-livecode wrote: >> Too funny. While I'm not so fond of either management or Crash, I'm glad I >> started this thread. >> On

Re: Catalina

2019-06-25 Thread Tore Nilsen via use-livecode
This is easily remedied. Just choose LC 9 in the Finder, choose Show Info and make sure you run it in 64 bit mode. I don’t have an English OS setup right know, but you should opt out of running the application in what in Norwegian is called "low resolution mode". Once you do, you will not get

Re: how to load a local file into the browser widget?

2019-05-24 Thread Tore Nilsen via use-livecode
Try to start the url with «file:/// « this is what I get at the start of the url of a browser widget when i set the url from a script using «answer file» to navigate to any valid html file: on mouseUp answer file "Choose html file to display" set url of widget "browser" to it end mouseUp

Re: how to load a local file into the browser widget?

2019-05-24 Thread Tore Nilsen via use-livecode
You must make sure that the filePath to the html file you would like to see does not contain any invalid characters like spaces, which you will find is OK by the file system but not with the browser. Tore > 24. mai 2019 kl. 22:02 skrev Curt Ford via use-livecode > : > > Is there a trick to

Re: Browser widget and downloading of files

2019-03-20 Thread Tore Nilsen via use-livecode
Thank you very much, this did the trick! Best regards Tore > 20. mar. 2019 kl. 22:09 skrev hh via use-livecode > : > > on browserUnhandledLoadRequest pURl > -- do your thing with pURL, for example: > -- use libURL for showing progress > put url(pURL) into > end browserUnhandledLoadRequest

Browser widget and downloading of files

2019-03-20 Thread Tore Nilsen via use-livecode
Are there any ways to start a download of a file via a link in the browser widget? It works fine in any other browser, but not when the page is displayed in a browser widget. Best regards Tore Nilsen ___ use-livecode mailing list

Re: Resizing stacks and make changes on more than one card

2019-03-09 Thread Tore Nilsen via use-livecode
regards Tore Nilsen > 9. mar. 2019 kl. 14:29 skrev Paul Dupuis via use-livecode > : > > move the resizeStack handlers from each CARD to the STACK script and combine > them so they update both cards to the new stack size > > > On 3/9/2019 7:51 AM, Tore Nilsen via use-l

Resizing stacks and make changes on more than one card

2019-03-09 Thread Tore Nilsen via use-livecode
I have a stack with 2 cards. On these cards, some elements change size or position when the stack is resized. As the resizeStack message is only sent to the current card, any changes only happen on this card. If the user then navigates to the other card, elements will be out of order on this

Re: TabStops and Tab Spacings

2019-03-04 Thread Tore Nilsen via use-livecode
If I understand your question correctly, you would like to export the styled text to an external document. If this is the case then you could use this: Put the rtfText of field myField into url myURL — where the file extension should be .rtf. You will then have styled text document where, to

Re: SVG widget and grab me command

2019-02-21 Thread Tore Nilsen via use-livecode
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

Re: SVG widget and grab me command

2019-02-21 Thread Tore Nilsen via use-livecode
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.

SVG widget and grab me command

2019-02-21 Thread Tore Nilsen via use-livecode
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

Re: Insert an Image into a Field

2019-01-31 Thread Tore Nilsen via use-livecode
set the imageSource of character …. to Look up imageSource in the dictionary for further details. Best regards Tore Nilsen - > 31. jan. 2019 kl. 20:03 skrev Roger Guay via use-livecode > : > > Could someone please remind me how to do this? I’m having a senior moment and > can’t find

Re: Repeat for each line of a variable or field?

2019-01-12 Thread Tore Nilsen via use-livecode
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

Re: LC 9.02 Problems when displaying local PDF in stack

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

Re: LC 9.02 Problems when displaying local PDF in stack

2019-01-05 Thread Tore Nilsen via use-livecode
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

Re: Interrupting "Wait"

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

Re: get offset of current selection

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

Re: Seeking OSX Code signing consultant...

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

Re: Seeking OSX Code signing consultant...

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

Re: Seeking OSX Code signing consultant...

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

Re: Seeking OSX Code signing consultant...

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

Re: Live Code crashes on startup

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

Live Code crashes on startup

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

Re: Browser widget and PDFs

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

Re: Browser widget and PDFs

2018-11-22 Thread Tore Nilsen via use-livecode
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, &

Browser widget and PDFs

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

Re: Bug in how LC handles sentences

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

Re: Bug in how LC handles sentences

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

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

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

Re: This is disturbing!

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

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

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.

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 >

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

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

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

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

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

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 >

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

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

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

Re: Listfield Questions

2018-06-16 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

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

  1   2   >