A gripe about the dictionary (battery life)

Geoff Canyon gcanyon at gmail.com
Fri Jan 3 21:29:34 EST 2014


Alejandro -- you're on Linux, right? Does LC have the same CPU usage issue
there?

Also, I'm curious about the permissions aspect. I did this on a Mac, using
Navigator, so my steps were:


1) Open the LiveCode Dictionary in the IDE

2) In Navigator, hold down the option key and click the stack menu and
select revDictionary

3) Double-click the first line: stack "revDictionary"

4) In the Code Editor windows for the stack "revDictionary"
that appears replace:

on checkForAltKey
   if altKey() is "up" and sAltKeyDown is not false  then
      ## Alt key has been released
      put false into sAltKeyDown
      entryHideLinks
   else if altKey() is "down" and sAltKeyDown is not true then
      ## Alt key has been pressed
      put true into sAltKeyDown
      entryDisplayLinks
   end if
   send "checkForAltKey" to me in 250 milliseconds
end checkForAltKey

with:

on checkForAltKey
   if altKey() is "up" and sAltKeyDown is not false  then
      ## Alt key has been released
      put false into sAltKeyDown
      entryHideLinks
   else if altKey() is "down" and sAltKeyDown is not true then
      ## Alt key has been pressed
      put true into sAltKeyDown
      entryDisplayLinks
   end if
 send "checkForAltKey" to me in 1 second
end checkForAltKey

on suspendStack
   stopAltKeyCheck
end suspendStack

on resumeStack
   startAltKeyCheck
end resumeStack

5) Click the button Apply and inside the Code Editor window

6) Right-click on the first line in Navigator, stack "revDictionary", and
select "Save" -- I'm curious if this would fail on Linux. I doubt Navigator
would report the error, so you'd just have to close LC and go on to step 7
to see.

7) Open again LiveCode IDE and verify the changes made.



More information about the use-livecode mailing list