A gripe about the dictionary (battery life)

Alejandro Tejada capellan2000 at gmail.com
Fri Jan 3 16:56:43 EST 2014


I forgot an important step in previous message,
Could you guess which?

For newbies, these are the steps 
to change this Dictionary script: 

1) Open the LiveCode Dictionary in the IDE 

2) In the message box, write: 
set the cantModify of stack "revDictionary" to false 

3) In the message box, write: 
edit the script of 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 
open the menu File and click Save 
(Under Linux, this process is a lot more involved 
because file permissions...) 

6) In the message box, write: 
set the cantModify of stack "revDictionary" to true 

7) Close the LiveCode IDE and, when asked, save the stack 
requested by the IDE. 

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

Al 




--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/A-gripe-about-the-dictionary-battery-life-tp4674300p4674305.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list