Re: Scrolling Smoothly through Large Scripts

2015-12-24 Thread Colin Holgate
That comment is talking about inertia, which is something you can turn off. I didn’t though, just setting the scrolling to only go 1 line instead of 3 is manageable enough. > On Dec 24, 2015, at 6:12 PM, J. Landman Gay wrote: > > We've been here before: >

Re: Scrolling Smoothly through Large Scripts

2015-12-24 Thread Lyn Teyla
Ray wrote: > Does anybody know how to scroll just one line per mouse-wheel movement > through the script editor window? > > I typically view several thousand lines at a time. Each push of the little > scroll wheel on my mouse produces an abrupt 'jerk' of 10 or 15 lines. It's > really hard

Re: Scrolling Smoothly through Large Scripts

2015-12-24 Thread Jerry Jensen
+1 My eyesight is not great and this is a continuing problem for me, even with non-large scripts and editor window. .Jerry > On Dec 24, 2015, at 8:59 AM, Ray wrote: > > Seasons Greetings on Christmas Eve! > > Does anybody know how to scroll just one line per mouse-wheel

Re: Scrolling Smoothly through Large Scripts

2015-12-24 Thread J. Landman Gay
We've been here before: I'm fond of that post. On 12/24/2015 4:41 PM, Jerry Jensen wrote: +1 My eyesight is not great and this is a continuing problem for me, even with non-large scripts and editor

Re: Scrolling Smoothly through Large Scripts

2015-12-24 Thread J. Landman Gay
I suspect the scroll wheel is sending multiple rawKeyDown messages per scroll unless you are able to be very precise when you do it. On December 24, 2015 2:17:36 PM CST, Ray wrote: >Peter - thanks for the idea. I've tried it along with a few variations > >on it but

Re: Scrolling Smoothly through Large Scripts

2015-12-24 Thread Colin Holgate
In the stack revscripteditor.rev there are two places where a constant is set. I’m not sure how you safely convert a palette stack into an ordinary stack, make changes, and convert it back, especially when it’s the script editor you’re messing with! But, a hex editor did the trick nicely. If

Grabbing Image with Transparent Mask

2015-12-24 Thread Brahmanathaswami
I am working on a small routine that will later be incorporated into a kind of edu/game module. This is a puzzle generating scenario where I am dynamically generating tiles from quotes for re-ordering by the player using this routine. 1) taking a field 2) stepping through each of the word 3)

Re: Grabbing Image with Transparent Mask

2015-12-24 Thread Scott Rossi
Hi Bramanatha: You don't say why you're using images as the tiles. The easiest solution would be to use a different object, like a button or graphic as the tile. That said, if you're set on using imported images, the key to making them clickable is to make the background of the captured image

Teachers choose the programming language

2015-12-24 Thread Alejandro Tejada
Hi All, There is a new opportunity for learning LiveCode in the classroom. :D This is the key phrase: Instructors can choose a language of their choice --- Please read: https://advancesinap.collegeboard.org/stem/computer-science-principles/course-details

Re: Scrolling Smoothly through Large Scripts

2015-12-24 Thread Ray
Peter - thanks for the idea. I've tried it along with a few variations on it but unfortunately to no avail. I can see it getting trapped but for some reason my script editor window always jumps about 5 or 6 lines when I scroll one notch using the mouse wheel. Any ideas? I'm experimenting

Re: Livecode Server and script only stacks

2015-12-24 Thread Richard Gaskin
David Bovill wrote: > I've been looking for the way to determine if a script is running on > a Livecode server - I've searched my memory and the docs - both both > seem somewhat unreliable - what is the function that returns 'server" > when running on Livecode server again? The environment

Scrolling Smoothly through Large Scripts

2015-12-24 Thread Ray
Seasons Greetings on Christmas Eve! Does anybody know how to scroll just one line per mouse-wheel movement through the script editor window? I typically view several thousand lines at a time. Each push of the little scroll wheel on my mouse produces an abrupt 'jerk' of 10 or 15 lines.

Re: Scrolling Smoothly through Large Scripts

2015-12-24 Thread Peter M. Brigham
Try this (untested). Put the following into a frontscript. Watch for email-induced linebreaks. on rawkeydown n if not (the name of the selectedfield contains "revNewScriptEditor") then pass rawkeydown if the optionkey is down then pass rawkeydown -- use optionkey to return to usual

Re: Charset problems with .lc web page

2015-12-24 Thread Alex Tweedly
Sorry Tim, I should have been clearer - it is literally $_SERVER["SCRIPT_FILENAME"] that you want to print. That's one of the built-in $_SERVER variables, showing which 'cgi' script (i.e. which version of the engine is running). So you'll get something like

Re: Charset problems with .lc web page

2015-12-24 Thread Lyn Teyla
Tim Selander wrote: > I'm having trouble making a .lc web pages correctly show the charset. > Anyone else having problems with this? Can .lc files not handle charset > correctly? Try inserting the following 3 lines right at the top of your .lc script, leaving everything else untouched:

Re: Charset problems with .lc web page

2015-12-24 Thread Alex Tweedly
Hi Tim, I'm afraid I know little or nothing about charsets, so I can't directly help :-) The difference between .irev and .lc is which version of the server engine they are running - and obviously that depends on your server setup. So, to help with answering this, we (might) need to know

Re: Charset problems with .lc web page

2015-12-24 Thread Tim Selander
Hi Alex, Thanks. I added http://www.pba.on-rev.com/5_today.lc;] & "" & CR ?> and also " & CR ?> in the script but it didn't return any info. I'm using On-Rev, the server is sage -- so whatever installs they have is what I'm using. I do find it curious that the older .irev works while .lc

Re: Charset problems with .lc web page

2015-12-24 Thread Lyn Teyla
Lyn Teyla wrote: > Try inserting the following 3 lines right at the top of your .lc script, > leaving everything else untouched: > > put header "Content-Type: text/html; charset=utf-8" > ?> There was a slight typo (missed the quotes); try this at the top of the script: Lyn :)

Re: Charset problems with .lc web page

2015-12-24 Thread Tim Selander
Hi Lyn, Thanks for the tip. But I tried it, and it didn't solve the problem with .lc & ?>. However, without fail, using .irev as the filename extension and tags in the web page show utf8 Japanese correctly -- so I am content to use those. Problem solved, as far as I'm concerned. Thanks!

Re: Charset problems with .lc web page

2015-12-24 Thread Lyn Teyla
Tim Selander wrote: > But I tried it, and it didn't solve the problem with .lc & . However, > without fail, using .irev as the filename extension and tags in the > web page show utf8 Japanese correctly -- so I am content to use those. > Problem solved, as far as I'm concerned. The “put

Re: Livecode Server and script only stacks

2015-12-24 Thread Dave Kilroy
The following works in an .lc script (on-rev) and in a button script in the IDE... If $_SERVER is empty then put "not on a server" else put "on a server" end if - "The difference between genius and stupidity is; genius has its limits." - Albert Einstein -- View this message in

Re: Livecode Server and script only stacks

2015-12-24 Thread David Bovill
Oh great - thanks Richard and Peter! I've been looking for the way to determine if a script is running on a Livecode server - I've searched my memory and the docs - both both seem somewhat unreliable - what is the function that returns 'server" when running on Livecode server again? On Wed, 23

Re: Charset problems with .lc web page

2015-12-24 Thread Tim Selander
Hi Alex, Got it! The .lc file shows: /usr/local/cpanel/cgi-sys/livecode-server-6.6.2 The .irev file shows /usr/local/cpanel/cgi-sys/ireviam-engine And the .irev file continues to show utf-8 (Japanese) correctly while the .lc file does not. Actually tested it with the exact same file, simply