#!/bin/sh # MetaCard 2.4 stack # The following is not ASCII text, # so now would be a good time to q out of more exec mc $0 "$@" } revAltHtml 3 "on altShowMe palette this stack show stack "revAltHtml" end altShowMe on altGetInfo answer last word of fld "info" end altGetInfo on closeStack delete me end closeStack on openStack if word 1 of the systemVersion is "NT" and word 2 of the systemVersion > 5 then put queryRegistry("HKEY_CURRENT_USER\Control Panel\Colors\MenuBar") into tColor if tColor <> "" then put word 1 of tColor,word 2 of tColor,word 3 of tColor into tColor set the backgroundColor of this stack to tColor end if end if end openStack B revstack false HTML Builder B J U ms sans serif W ms sans serif U Smilly U Telegraphic Light U Telegraphic Light W Telegraphic Light U Small Fonts W Small Fonts U Small Fonts W Small Fonts U Arial U Arial U ms sans serif W ms sans serif U ms sans serif W ms sans serif W ms sans serif W ms sans serif W ms sans serif U ms sans serif W ms sans serif U ms sans serif U ms sans serif W ms sans serif @U ms sans serif @U ms sans serif @U ms sans serif U ms sans serif U ms sans serif U ms sans serif W ms sans serif U MS Sans serif U ms sans serif U ms sans serif U Small Fonts U Small Fonts U Small Fonts U Small Fonts U Verdana U Verdana U Verdana U ms sans serif W Verdana W Verdana W Verdana U arial W Verdana U Verdana U ms sans serif U ms sans serif W ms sans serif W ms sans serif U verdana U verdana U verdana U Arial U Arial U Arial U Arial W Arial W Arial @U Arial W Arial @U Arial U Arial U Arial W Arial W Arial @U Verdana U Arial U ms sans serif W ms sans serif U Script U Arial cREVLoadInfo load chosen cREVGeneral scriptChecksum r{ϴD<:5t@ bookmarks handlerList )altShowMe altGetInfo closeStack openStacktempScript prevHandler openStackscriptSelection char 521 to 520script
on altShowMe
palette this stack
show stack "revAltHtml"
end altShowMe
on altGetInfo
answer last word of fld "info"
end altGetInfo
on closeStack
delete me
end closeStack
on openStack
if word 1 of the systemVersion is "NT" and word 2 of the systemVersion > 5 then
put queryRegistry("HKEY_CURRENT_USER\Control Panel\Colors\MenuBar") into tColor
if tColor <> "" then
put word 1 of tColor,word 2 of tColor,word 3 of tColor into tColor
set the backgroundColor of this stack to tColor
end if
end if
end openStack
card id 1022 P on resizeStack lock screen get the rect of this card put 1 into fldLborder put -1 into fldRborder put 113 into fldTborder put -17 into fldBborder put -3 into tabLborder put 1 into tabRborder put 44 into tabTborder put 1 into tabBborder set the rect of fld "theText" to \ fldLborder,fldTborder,item 3 of it + fldRborder,item 4 of it + fldBborder set the rect of fld "html" to \ fldLborder,65,item 3 of it + fldRborder,item 4 of it + fldBborder set the rect of fld "htmlText" to \ fldLborder,65,item 3 of it + fldRborder,item 4 of it + fldBborder set the rect of btn "theTabs" to \ tabLborder,tabTborder,item 3 of it + tabRborder,item 4 of it + tabBborder set the rect of btn "Divider" to \ 0,110,item 3 of it,87 set the loc of btn id 1146 to 136,item 4 of it -9 set the loc of btn "Copy to Clipboard" to item 3 of it - 55,18 set the loc of btn "tgLbl" to item 3 of it -66, item 4 of it - 9 unlock screen end resizeStack on mouseEnter if "toolbarButton" is in the customKeys of the target then set the colors of btn "border" to empty set the rect of btn "border" to the rect of the target set the textColor of the target to 51,51,255 end if end mouseEnter on mouseDown if "toolbarButton" is in the customKeys of the target then set the topColor of btn "border" to 128,128,128 set the bottomColor of btn "border" to white end if end mouseDown on mouseUp if "toolbarButton" is in the customKeys of the target then --set the defaultStack to "revMenuBar" set the colors of btn "border" to empty set the loc of btn "border" to -100,-100 --set the loc of the target to lOrigLoc set the textColor of the target to empty end if end mouseUp on mouseRelease if "toolbarButton" is in the customKeys of the target then set the loc of btn "border" to -100,-100 set the colors of btn "border" to empty -- set the loc of the target to lOrigLoc set the textColor of the target to empty end if end mouseRelease on mouseLeave if "toolbarButton" is in the customKeys of the target then set the loc of btn "border" to -100,-100 set the textColor of the target to empty end if end mouseLeave function validSelChunck theSelChunk put itemDel into oldItemDel set itemDel to " " if item 2 of theSelChunk > item 4 of theSelChunk then set itemDel to oldItemDel return false else set itemDel to oldItemDel return true end if end validSelChunck on resetBtns set the loc of btn "Bold Inverted" to -100,-100 set the loc of btn "Italic Inverted" to -100,-100 set the loc of btn "Link Inverted" to -100,-100 end resetBtns on linkClicked pLink revGoURL pLink end linkClicked B cREVGeneral scriptChecksum u%|35x,p bookmarks handlerList eresizeStack mouseEnter mouseDown mouseUp mouseRelease mouseLeave validSelChunck resetBtns linkClickedscriptSelection char 779 to 778prevHandler linkClickedtempScript scripton resizeStack
lock screen
get the rect of this card
put 1 into fldLborder
put -1 into fldRborder
put 113 into fldTborder
put -17 into fldBborder
put -3 into tabLborder
put 1 into tabRborder
put 44 into tabTborder
put 1 into tabBborder
set the rect of fld "theText" to \
fldLborder,fldTborder,item 3 of it + fldRborder,item 4 of it + fldBborder
set the rect of fld "html" to \
fldLborder,65,item 3 of it + fldRborder,item 4 of it + fldBborder
set the rect of fld "htmlText" to \
fldLborder,65,item 3 of it + fldRborder,item 4 of it + fldBborder
set the rect of btn "theTabs" to \
tabLborder,tabTborder,item 3 of it + tabRborder,item 4 of it + tabBborder
set the rect of btn "Divider" to \
0,110,item 3 of it,87
set the loc of btn id 1146 to 136,item 4 of it -9
set the loc of btn "Copy to Clipboard" to item 3 of it - 55,18
set the loc of btn "tgLbl" to item 3 of it -66, item 4 of it - 9
unlock screen
end resizeStack
on mouseEnter
if "toolbarButton" is in the customKeys of the target then
set the colors of btn "border" to empty
set the rect of btn "border" to the rect of the target
set the textColor of the target to 51,51,255
end if
end mouseEnter
on mouseDown
if "toolbarButton" is in the customKeys of the target then
set the topColor of btn "border" to 128,128,128
set the bottomColor of btn "border" to white
end if
end mouseDown
on mouseUp
if "toolbarButton" is in the customKeys of the target then
--set the defaultStack to "revMenuBar"
set the colors of btn "border" to empty
set the loc of btn "border" to -100,-100
--set the loc of the target to lOrigLoc
set the textColor of the target to empty
end if
end mouseUp
on mouseRelease
if "toolbarButton" is in the customKeys of the target then
set the loc of btn "border" to -100,-100
set the colors of btn "border" to empty
-- set the loc of the target to lOrigLoc
set the textColor of the target to empty
end if
end mouseRelease
on mouseLeave
if "toolbarButton" is in the customKeys of the target then
set the loc of btn "border" to -100,-100
set the textColor of the target to empty
end if
end mouseLeave
function validSelChunck theSelChunk
put itemDel into oldItemDel
set itemDel to " "
if item 2 of theSelChunk > item 4 of theSelChunk then
set itemDel to oldItemDel
return false
else
set itemDel to oldItemDel
return true
end if
end validSelChunck
on resetBtns
set the loc of btn "Bold Inverted" to -100,-100
set the loc of btn "Italic Inverted" to -100,-100
set the loc of btn "Link Inverted" to -100,-100
end resetBtns
on linkClicked pLink
revGoURL pLink
end linkClicked
w ^ I \ _ ` q y { } @ B M N O P Q R [ j icons group i d( 3 cREVGeneral revUniqueID 971717392786 bookmarks handlerList tempScript prevHandler scriptSelection script Save B Non mouseUp send "menuPick" && quote&"Save""e to btn "File" end mouseUp Nl # # cTopLeft 71,23cREVtoolbarButton Save cREVGeneral handlerList mouseUptempScript script Cut B Mon mouseUp send "menuPick" && quote&"Cut""e to btn "Edit" end mouseUp pl ) # cTopLeft 105,23cREVtoolbarButton Cut cREVGeneral handlerList mouseUptempScript script Edit Script B' 4on mouseUp edit script of the selobj end mouseUp Nl ) # cTopLeft 327,23cREVtoolbarButton Edit Script Script cREVGeneral bookmarks handlerList mouseUptempScript prevHandler mouseUpscriptSelection char 1 to 10script Message Box ' Zon mouseUp send "menuPick" && quote & "Message box" & quote to btn "Tools" end mouseUp l # # cTopLeft 450,23cREVtoolbarButton Message Box Msg cREVGeneral scriptChecksum ci4X(W&+VhandlerList mouseUptempScript script Edit Group "& Pon mouseUp send "mouseDown" to group 1 of stack "revMenuBar" set the defaultStack to the topStack if word 1 of (the selObj) is "group" then if revMenuManagerGroup(the selobj) then answer error "Can't edit group that is in use by the Menu Manager. To edit this group close the Menu Manager." exit mouseUp end if start editing the selobj else if the editBg then set the editBg to false if the mode of stack "revApplicationOverview" is not 0 and "group" is in the cREVMode of stack "revApplicationOverview" then --update AO edit group toggle btns send "revUpdatePalette" to this cd of stack "revApplicationOverview" set the cREVDisabled of btn "Edit 2" of this cd of stack "revApplicationOverview" to the cREVDisabled of btn "Edit 2" of this cd of stack "revApplicationOverview" end if end mouseUp l 9 # cREVHilitedText 0edit group - stop editing this background revButton false cTopLeft 485,23cREVUnHilitedText Bedit group - edit the currently selected group (background)cREVtoolbarButton revbasic false Edit Group Edit Group cREVGeneral scriptChecksum Wyog*j bookmarks handlerList mouseUptempScript prevHandler mouseUpscriptSelection char 339 to 338script Group Controls ' ?on mouseUp send "mouseDown" to group 1 of this stack if the number of lines in (the selObj) > 1 or word 1 of (the selObj) is not "group" then send menuPick && quote & "Group selected" & quote to btn "Object" else send "menuPick" && quote & "Ungroup selected" & quote to btn "Object" end if end mouseUp #l ) # cREVHilitedText :ungroup - ungroup controls in the current selection revButton false cTopLeft 540,23cREVUnHilitedText 6group - group controls in the current selection revbasic falsecREVtoolbarButton (Un)Group Controls Group cREVGeneral scriptChecksum @u L+Y̺# bookmarks handlerList mouseUptempScript prevHandler mouseUpscriptSelection char 142 to 141script Select Grouped Controls b' on mouseUp set the selectGroupedControls to not (the selectGroupedControls) if not the selectGroupedControls then set the loc of btn "SGC Inverted" to -100,-100 else set the rect of btn "SGC Inverted" to the rect of btn "Select Grouped Controls" --if not the selectGroupedControls then set the icon of btn "select grouped controls" to 200875 --else set the icon of btn "select grouped controls" to 201230 end mouseUp Ll # # cREVHilitedText Sselect grouped controls - select owner groups instead of individual controls cTopLeft 581,23cREVUnHilitedText Yselect grouped controls - select individual controls instead of their owner groups cREVHelpText Sselect grouped controls - select owner groups instead of individual controlscREVtoolbarButton Select Grouped Controls SGC cREVGeneral scriptChecksum Pi *O bookmarks handlerList mouseUpscriptSelection char 428 to 427prevHandler mouseUptempScript script Suppress Messages "& on mouseUp set the hilite of me to not the hilite of me send menuPick && quote & "Suppress Messages" & quote to btn "Development" pass mouseUp end mouseUp ol 0 # cTopLeft 616,23cREVtoolbarButton Suppress Messages " Messages cREVGeneral scriptChecksum ӝy=xVJ0~$ bookmarks handlerList mouseUpscriptSelection char 161 to 160prevHandler mouseUptempScript script Toggle Palettes & con mouseUp send menuPick && quote & "Palettes" & quote to btn "View" pass mouseUp end mouseUp l 0 # cREVHilitedText +toggle palettes - show tool palettes cTopLeft 705,23cREVUnHilitedText +toggle palettes - hide tool palettescREVtoolbarButton Show/Hide Palettes Palettes cREVGeneral scriptChecksum }m{5;a bookmarks handlerList mouseUpscriptSelection char 99 to 98prevHandler mouseUptempScript script Copy B Aon mouseUp send "menuPick" && "Copy" to btn "Edit" end mouseUp l ) # cTopLeft 145,23cREVtoolbarButton Copy cREVGeneral scriptChecksum Q3*3}#J(\, bookmarks handlerList mouseUptempScript prevHandler mouseUpscriptSelection char 15 to 14script Paste B Don mouseUp send "menuPick" && "Paste" to btn "Edit" end mouseUp l ) # cTopLeft 186,23cREVtoolbarButton Paste cREVGeneral scriptChecksum wdcVL7+=3handlerList mouseUptempScript script Undo B Zon mouseUp select pointer tool --send "menuPick" && "Undo" to btn "Edit" end mouseUp l ) # cTopLeft 226,23cREVtoolbarButton revbasic false Undo cREVGeneral scriptChecksum H