REVO2700 DragAndDrop2 3 I i uCurLoc 505,443uPaypalURL Chttps%3A%2F%2Fwww.paypal.com%2Fcgi-bin%2Fwebscr%3Fcmd%3D_xclick%26business%3Deric%252echatonet%2540sosmartsoftware%252ecom%26item_name%3DEric%2520Chatonet%26item_number%3DDev%2520Support%26no_shipping%3D0%26no_note%3D1%26tax%3D0%26currency_code%3DEUR%26return%3Dhttp%3A%2F%2Fwww.sosmartsoftware.com%2F%26charset%3DUTF%252d8 How to Manage Drag and Drop ' U Lucida Grande U Lucida Grande W Lucida Grande U Lucida Grande U Verdana W Lucida Grande W Verdana U Verdana U Helvetica U Helvetica U Helvetica U Helvetica,Unicode U Helvetica,Unicode W courier new @U tahoma U tahoma W tahoma U Verdana W Verdana @U Verdana W Verdana @W Verdana U Georgia U Georgia U Arial U Arial U Monaco U Monaco AU Verdana U Courier U Verdana W Arial U Arial W Arial U Courier New U Verdana U Verdana W Georgia U Tahoma cREVGeneral debugObjects stackfileversion 2.7 cREVGeometryCache stackID 2027 X on preOpenStack set the style of this stack to "modeless" set the loc of this stack to the screenloc set the uCurLoc of this stack to the loc of this stack end preOpenStack --------------------------------------- on openStack if not MinVersion(2.9) then -- answer warning "Some features in this stack need Rev 2.9 or later." & cr & "Rev Error dialog may show up." as sheet end if end openStack --------------------------------------- on moveStack set the uCurLoc of this stack to the loc of this stack end moveStack --------------------------------------- on resizeStack revUpdateGeometry repeat with i = 1 to the number of btns in grp "Boundaries" set the uLoc of btn i of grp "Boundaries" to the loc of btn i of grp "Boundaries" end repeat repeat with i = 1 to the number of flds if the uDontResize of fld i then next repeat set the vScrollBar of fld i to the formattedHeight of fld i > the height of fld i end repeat set the uCurLoc of this stack to the loc of this stack end resizeStack --------------------------------------- on linkClicked pLink if pLink = "Here" then revGoUrl "http://www.mail-archive.com/use-revolution@lists.runrev.com/msg18480.html" else if pLink = "docs" then FindInDictionary "dragdata" -- C else if pLink = "Basics" then set the menuHistory of btn "Tabs" to 2 else FindInDictionary pLink -- C end linkClicked --------------------------------------- on ShowAnotherStack local tLeft ----- if item 3 of the screenRect - the right of this stack < the width of stack "AnotherStack" + 16 then put the left of this stack into tLeft if the width of this stack <> 800 then set the width of this stack to 800 set the left of this stack to tLeft end if move this stack to 410,item 2 of the loc of this stack in 200 milliseconds end if go stack "AnotherStack" set the defaultStack to the mainStack of this stack end ShowAnotherStack --------------------------------------- on FindInDictionary pLink local tLink,tFlag,tLineNo ----- set the cursor to watch put word 1 of pLink into tLink put "revDocs" is in the windows into tFlag ----- if not tFlag then go invisible to cd 4 of stack "revDocs" as modeless else lock screen go to cd 4 of stack "revDocs" as modeless end if ----- set the cursor to watch go to cd 4 of stack "revDocs" set the defaultStack to "revDocs" if pLink <> fld "SearchText" then put word 1 of pLink into fld "SearchText" send "updateFilter" to fld "SearchText" end if put lineOffset(cr & word 1 of pLink,cr & fld "Data") into tLineNo if not matchChunk(the hilitedText of fld "Data",word 1 of pLink & "*") then set the hilitedLine of fld "Data" to tLineNo send "entryChunk" && "entryDisplay",quote & "line" && tLineNo && "of fld 10" & quote to grp "Dataview" end if put tLink into fld "SearchText" -- due to an unknown bug in revDocs ----- show stack "revDocs" unlock screen end FindInDictionary --------------------------------------- on DisplayMessage pParams,pFld local tKeys,tKey,tKeysList ----- if fld pFld = "Messages:" then put empty into fld pFld if "dragDrop" is in pParams then put the keys of the dragdata into tKeys repeat for each line tKey in tKeys if the dragData[tKey] = empty then put tab & tKey & ": empty" & cr after tKeysList else put tab & tKey & ": not empty" & cr after tKeysList end repeat delete last char of tKeysList put tKeysList & cr & pParams & cr before fld pFld else put pParams & cr before fld pFld set the vScrollbar of fld pFld to the formattedHeight of fld pFld > the height of fld pFld end DisplayMessage --------------------------------------- function MinVersion pVersion return (char 1 to 3 of the version >= pVersion) end MinVersion uCurField ListField1 uDraggedFrom FieldB cREVGeometryCacheIDs h1208179534817 19461206185341531 10131206634311825 12581206440625610 10931206447635537 11081206464200264 11311208182414833 20151207050755042 14781207050755043 14801207050755044 14821207050755045 14831206456435319 11261206456435320 11251206456301140 11291207050755046 14841206456435321 11271206456435322 11281206548126350 11951206717656566 13371206530656305 11641206654754802 13031206717656567 13381206530656306 11651206953071665 13641206185056912 10121206447866066 11091206951664674 13621206455908963 11231206441551383 10971206530924030 11661206464204168 11321206288308878 10281206289700005 10361206440642103 10951206438729762 10921206531419117 11681206621840687 12361206621948402 12421207132611517 16661206622570897 18371206622570898 18381206377962895 10841207153387076 11811206610694925 12321207153387077 11791206185693641 10181206530273946 11631206634523988 12701207138689592 17831206456204722 11241206634773073 12591206634773074 12601206713797233 13311206353911525 10671206448379654 11171206455905402 11211206634773075 12641206448379655 11181206634773076 12651208179624417 19471206298316331 10431206370167031 10681206635914134 12801206352682893 10651206185406820 10141206441614072 10991206184986856 10101206370178682 10691206370178684 10711207052192647 15141206370178685 10721206370178686 10731206370178687 10751206456431694 11301206891359521 13471206655515116 13101206891359522 13481206447882829 11101206655172558 13061206891359523 13491206891359524 13501206442310072 11031206377662485 10811206621253713 12371208179645742 19481206267906858 16001206970234783 13811206526367520 11511206530271451 11611206654708520 13011206442057900 11041206190911082 10201206378065028 10851206634748342 12721206448678984 11201206288329016 10301206447898640 11111206448219710 602111206448219709 602101207149985834 18361206448219711 602121207051273280 15081206448219712 602131206352303859 1063 cREVGeometrycache total 104order c1206185056912 1206289700005 1206184986856 1206185406820 1206185693641 1206440625610 1206353911525 1206288308878 1206298316331 1206370178682 1206370178686 1206370178687 1206442057900 1207051273280 1206713797233 1206621253713 1206634523988 1206455905402 1206456204722 1206456301140 1206610694925 1206530271451 1206530924030 1206531419117 1206634773073 1206634773074 1206634773075 1206634773076 1206185341531 1206352682893 1206352303859 1206378065028 1206370178684 1206370178685 1207149985834 1207050755042 1207050755043 1207050755044 1207050755045 1207050755046 1207132611517 1206621948402 1206717656566 1206717656567 1206891359521 1206891359522 1206891359523 1206891359524 1206441614072 1206448219709 1206448219710 1206448219711 1206448219712 1206526367520 1206530656305 1206530656306 1206548126350 1206655515116 1206377662485 1207052192647 1206634748342 1206635914134 cREVGeneral scriptChecksum 0o@eg'.89 bookmarks breakPoints handlerList tpreOpenStack openStack moveStack resizeStack linkClicked ShowAnotherStack FindInDictionary DisplayMessage MinVersionscriptSelection char 822 to 832prevHandler preOpenStacktempScript script +
on preOpenStack
set the style of this stack to "modeless"
set the loc of this stack to the screenloc
set the uCurLoc of this stack to the loc of this stack
end preOpenStack
---------------------------------------
on openStack
if not MinVersion(2.9) then --
answer warning "Some features in this stack need Rev 2.9 or later." & cr & "Rev Error dialog may show up." as sheet
end if
end openStack
---------------------------------------
on moveStack
set the uCurLoc of this stack to the loc of this stack
end moveStack
---------------------------------------
on resizeStack
revUpdateGeometry
repeat with i = 1 to the number of btns in grp "Boundaries"
set the uLoc of btn i of grp "Boundaries" to the loc of btn i of grp "Boundaries"
end repeat
repeat with i = 1 to the number of flds
if the uDontResize of fld i then next repeat
set the vScrollBar of fld i to the formattedHeight of fld i > the height of fld i
end repeat
set the uCurLoc of this stack to the loc of this stack
end resizeStack
---------------------------------------
on linkClicked pLink
if pLink = "Here" then revGoUrl "http://www.mail-archive.com/use-revolution@lists.runrev.com/msg18480.html"
else if pLink = "docs" then FindInDictionary "dragdata" -- C
else if pLink = "Basics" then set the menuHistory of btn "Tabs" to 2
else FindInDictionary pLink -- C
end linkClicked
---------------------------------------
on ShowAnotherStack
local tLeft
-----
if item 3 of the screenRect - the right of this stack < the width of stack "AnotherStack" + 16 then
put the left of this stack into tLeft
if the width of this stack <> 800 then
set the width of this stack to 800
set the left of this stack to tLeft
end if
move this stack to 410,item 2 of the loc of this stack in 200 milliseconds
end if
go stack "AnotherStack"
set the defaultStack to the mainStack of this stack
end ShowAnotherStack
---------------------------------------
on FindInDictionary pLink
local tLink,tFlag,tLineNo
-----
set the cursor to watch
put word 1 of pLink into tLink
put "revDocs" is in the windows into tFlag
-----
if not tFlag then go invisible to cd 4 of stack "revDocs" as modeless
else
lock screen
go to cd 4 of stack "revDocs" as modeless
end if
-----
set the cursor to watch
go to cd 4 of stack "revDocs"
set the defaultStack to "revDocs"
if pLink <> fld "SearchText" then
put word 1 of pLink into fld "SearchText"
send "updateFilter" to fld "SearchText"
end if
put lineOffset(cr & word 1 of pLink,cr & fld "Data") into tLineNo
if not matchChunk(the hilitedText of fld "Data",word 1 of pLink & "*") then
set the hilitedLine of fld "Data" to tLineNo
send "entryChunk" && "entryDisplay",quote & "line" && tLineNo && "of fld 10" & quote to grp "Dataview"
end if
put tLink into fld "SearchText" -- due to an unknown bug in revDocs
-----
show stack "revDocs"
unlock screen
end FindInDictionary
---------------------------------------
on DisplayMessage pParams,pFld
local tKeys,tKey,tKeysList
-----
if fld pFld = "Messages:" then put empty into fld pFld
if "dragDrop" is in pParams then
put the keys of the dragdata into tKeys
repeat for each line tKey in tKeys
if the dragData[tKey] = empty then
put tab & tKey & ": empty" & cr after tKeysList
else put tab & tKey & ": not empty" & cr after tKeysList
end repeat
delete last char of tKeysList
put tKeysList & cr & pParams & cr before fld pFld
else put pParams & cr before fld pFld
set the vScrollbar of fld pFld to the formattedHeight of fld pFld > the height of fld pFld
end DisplayMessage
---------------------------------------
function MinVersion pVersion
return (char 1 to 3 of the version >= pVersion)
end MinVersion
@ D G I 2 3 4 5 c k l T Tabs } 5on menuPick pNewItem, pOldItem local tLeft ----- lock screen show grp pNewItem hide grp pOldItem put empty into img "Drop" put empty into img "Drop2" unlock screen unlock screen switch pNewItem case "Between two Rev windows" set the uCurLoc of this stack to the loc of this stack ShowAnotherStack -- C break case "Towards Rev" case "From Rev" put "Messages:" into fld "DDMessage" put "Messages:" into fld "DDMessage2" set the vScrollbar of fld "DDMessage" to false set the vScrollbar of fld "DDMessage2" to false default close stack "AnotherStack" if the uCurLoc of this stack is a point and the loc of this stack <> the uCurLoc of this stack then move this stack to the uCurLoc of this stack in 200 milliseconds end if end switch end menuPick R > HBasics Into one Rev window Between two Rev windows From Rev Towards Rev cREVGeometry Master,scaleBottomObjectSide BottomMaster,movehDistance falseMaster trueMaster,scaleBottomObjectRef cardMaster,scaleBottomAbsolute trueMaster,scaleBottom trueMaster,movevDistance falseMaster,scalebottomDistance -55Master,expectedRect 20,7,780,345Master,scaleRightAbsolute trueMaster,scaleRight trueMaster,scalerightDistance -20Master,scaleRightObjectSide RightMaster,scaleRightObjectRef cardMaster,cardRanking 2Master,scaletopDistance Master,scaleleftDistance cREVGeneral scriptChecksum Ai7 aj\$cy1breakPoints handlerList menuPickscriptSelection char 568 to 567 bookmarks revUniqueID 1206185056912prevHandler menuPicktempScript scripton menuPick pNewItem, pOldItem
local tLeft
-----
lock screen
show grp pNewItem
hide grp pOldItem
put empty into img "Drop"
put empty into img "Drop2"
unlock screen
unlock screen
switch pNewItem
case "Between two Rev windows"
set the uCurLoc of this stack to the loc of this stack
ShowAnotherStack -- C
break
case "Towards Rev"
case "From Rev"
put "Messages:" into fld "DDMessage"
put "Messages:" into fld "DDMessage2"
set the vScrollbar of fld "DDMessage" to false
set the vScrollbar of fld "DDMessage2" to false
default
close stack "AnotherStack"
if the uCurLoc of this stack is a point and the loc of this stack <> the uCurLoc of this stack then
move this stack to the uCurLoc of this stack in 200 milliseconds
end if
end switch
end menuPick
SSS.png Hon mouseDown revGoUrl "http://www.sosmartsoftware.com" end mouseDown Pf " -PNG IHDR " . pHYs .# .#x?v 9iCCPPhotoshop ICC profile xڝwTTϽwz0z.0. Qf Ml@DEHb!(`HPb0dFJ|yyǽgs{. $O./ 'z8WGб x 0Y驾A@$/7z HeOOҬT _lN:K"N3"$F/JPrb[䥟}Qd[Sl1x{#bG\NoX3I[ql2 $8xtr p/8pCfq.Knjm͠{r28?.)ɩL^6 g,qm"[Z[Z~Q7%" 3R `̊j[~ : w! $E}kyhyRm333: }=#vʉe tqX)I)B>== <8Xȉ9