Skip to content

Instantly share code, notes, and snippets.

Monte Goulding montegoulding

Block or report user

Report or block montegoulding

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:1b6248d5e4c9af8ee706a9719eb6fac2
diff --git a/Toolset/home.livecodescript b/Toolset/home.livecodescript
index 9a88644..ae25f30 100644
--- a/Toolset/home.livecodescript
+++ b/Toolset/home.livecodescript
@@ -1165,42 +1165,8 @@ command revInternal__InitialiseLibraries
try
insert script of stack "revInitialisationLibrary" into back
catch tError
-<<<<<<< HEAD
revInternal__Log "Error", "Error loading initialisation library" & return & tError
View YAMLToArray
constant kMultiLineModeNone = 0
constant kMultiLineModeLiteral = 1
constant kMultiLineModeFolded = 2
command YAMLToArray pYaml
local tInDocument = true
local tPath
local tArray
local tPathLists
local tReferences
@montegoulding
montegoulding / gist:e3cccc1587814b96107f540b53265bb6
Created Feb 8, 2017
PR 1537 script of stack "message box"
View gist:e3cccc1587814b96107f540b53265bb6
on ideInitialiseMessageBox
dispatch "setAsBehavior" to stack revIDEPaletteResourcePath("/behaviors/revmessageboxbehavior.livecodescript") with the long id of me
set the behavior of card "Single Line" of me to the long id of stack revIDEMessageBoxBehavior("single line card")
set the behavior of field "message" of card "Single Line" of me to the long id of stack revIDEMessageBoxBehavior("single line message")
set the behavior of card "Multiple Lines" of me to the long id of stack revIDEMessageBoxBehavior("multiple lines card")
set the behavior of field "message" of card "Multiple Lines" of me to the long id of stack revIDEMessageBoxBehavior("multiple lines message")
revIDESubscribe "ideMsgChanged"
end ideInitialiseMessageBox
View Ask Dialog Card Script
on doresize
// AL-2014-05-21: [[ Bug 12074 ]] Support RTL layout when resizing ask dialog
local tRTL
put the cRTL of this card into tRTL
local twidth, iwidth
put the width of this stack into twidth
if item 1 of the loc of button "icon" is not "-100" then
local tIconEdge
if tRTL then
View Answer Dialog Card Script
on preOpenStack
global gAnswerDebugInfo
global gAPKLargeFonts, gREVSmallAppIcon, gREVAppIcon
local tIcons, tMacOSX, tMargin, tNumber, tIconWord, tIconAllowance, tText
local tButtonNames, tNoOfButtons, tTotalBtnWidth, tMnemonicString, tNo
local tFieldScript, tFieldSubtract, t, tWidth, tNewWidth, oldwidth, tAddition
local tStartEdge, tHeight
// AL-2014-05-21: [[ Bug 12074 ]] Tidied up and rearranged to support
// RTL layout, as determined by item 5 of the dialogData
@montegoulding
montegoulding / RepoFixer.livecodescript
Last active Sep 10, 2015
This is a stack that will fix the LiveCode repo to point to their new username. While we are poking around it also fixes the submodule remotes to point to your forks of them.
View RepoFixer.livecodescript
script "RepoFixer"
on preOpenCard
create button "Fix Repo"
set the rect of it to 10,10,100,33
create field "Username"
set the rect of it to 10,40,100,61
set the visible of me to true
end preOpenCard
on mouseUp
You can’t perform that action at this time.