Skip to content

Instantly share code, notes, and snippets.

View livecodeali's full-sized avatar

Ali Lloyd livecodeali

  • LiveCode Ltd
  • Edinburgh
View GitHub Profile
--- before.txt 2015-10-30 09:57:15.000000000 +0000
+++ after.txt 2015-10-30 09:56:29.000000000 +0000
@@ -1,31 +1,101 @@
function getExtensionList
+ if there is not a group "extensions" of me then
+ return empty
+ end if
+
local tList
- repeat for each item tLine in the hilitedLines of field "Extensions"
on preOpenStack
dispatch "setAsBehavior" to stack revIDEPaletteResourcePath("behaviors/revdictionarybehavior.livecodescript") with the long id of me
addFrameItem "show_apis","header", "navigation", "API", "f1b3", "f1b3","showAPIs", the long id of me
addFrameItem "show_guides","header", "navigation", "Guide", "f1b3", "f1b3","showGuides", the long id of me
end preOpenStack
--- before.txt 2015-11-10 15:15:44.000000000 +0000
+++ after.txt 2015-11-10 15:15:03.000000000 +0000
@@ -5,17 +5,11 @@
dispatch "setAsBehavior" to revIDEFrameBehavior() with the long id of me
set the zoomBox of this stack to false
- send "browserStart" to card "search" of me in 0 milliseconds
-
clearFrameData
@livecodeali
livecodeali / docs-list.md
Last active January 15, 2016 10:07
Current syntax / parameter mismatches in the LiveCode Dictionary
--- /Users/alilloyd/Desktop/before.txt 2016-01-26 13:46:20.000000000 +0000
+++ /Users/alilloyd/Desktop/after.txt 2016-01-26 13:46:38.000000000 +0000
@@ -274,19 +274,15 @@
put tNewInspectorName into tTargetInspector
addInspectorToList tIndex
end if
- inspectorPositionPalette tIndex, tSelectedObjects
+ -- Only reposition if we are opening a new editor
+ if the mode of stack tTargetInspector is 0 then
+ inspectorPositionPalette tIndex, tSelectedObjects
@@ -10,6 +10,7 @@
# Navigation
addFrameItem "widget","header", "navigation", "Widgets", "f013", "f013","showList", the long id of me,"widget"
addFrameItem "library","header", "navigation", "Libraries", "f02e", "f02e","showList", the long id of me,"library"
+ addFrameItem "install", "header", "action", "Install extension", "plus", "","installNew", the long id of me
set the hilitedTabColor of me to "255,255,255"
set the navigationDisplayStyle of me to "names"
@@ -61,8 +62,6 @@
on setUpExtensionList
--- /Users/alilloyd/Desktop/before.txt 2016-04-25 15:46:11.000000000 +0100
+++ /Users/alilloyd/Desktop/after.txt 2016-04-25 15:45:25.000000000 +0100
@@ -1,29 +1,11 @@
command updateRecentlyOpenedStacks
local tRecentStacks
- put revIDEGetRecentPathsAsMenu() into tRecentStacks
- replace tab with "" in tRecentStacks
- replace "\/" with "/" in tRecentStacks
- local tOffset
- repeat for each line tLine in tRecentStacks
--- /Users/alilloyd/Desktop/before.txt 2016-04-28 16:14:10.000000000 +0100
+++ /Users/alilloyd/Desktop/after.txt 2016-04-28 16:15:25.000000000 +0100
@@ -8,6 +8,7 @@
ResizeMe pBeingDroppedAfterRow
end PositionDropIndicator
+constant kIndicatorThickness = 2
on ResizeMe pBeingDroppedAfterRow
local theViewRect, theRect, tRowRect, tMid
local tExpanded, tAbsoluteRow, tRowType
diff --git a/docs/dictionary/command/call.lcdoc b/docs/dictionary/command/call.lcdoc
index f29516c..b07a907 100644
--- a/docs/dictionary/command/call.lcdoc
+++ b/docs/dictionary/command/call.lcdoc
@@ -4,7 +4,7 @@ Type: command
Syntax: call <handler> [of <object>]
-Summary: <execute|Executes> the specified <handler> in any <object'sscript>.
+Summary: <execute|Executes> the specified <handler> in any <object|object's> <script>.
--- androidbefore.txt 2016-05-10 11:11:32.000000000 +0100
+++ androidafter.txt 2016-05-10 11:09:56.000000000 +0100
@@ -94,10 +94,6 @@
set the hilite of button i of group "permissions" to computeDefault(tSettings["android,application permissions"][it], false)
end repeat
- repeat for each word tExternal in "revzip revxml dbsqlite dbmysql dbodbc dbpostgresql revsecurity"
- set the hilite of button tExternal of group "Externals" to computeDefault(tSettings["android,include" && tExternal], false)
- end repeat
-