home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carousel
/
CAROUSEL.cdr
/
mactosh
/
hc
/
notepads.sit
/
LooseNotes
/
background_2766.txt
< prev
next >
Wrap
Text File
|
1987-11-24
|
8KB
|
361 lines
-- background: 2766 from stack: in
-- bmap block id: 3876
-- flags: 0000
-- background id: 0
-- name:
----- HyperTalk script -----
on closeField
put char 2 to 99 of item 2 of the abbrev date into field "Date"
end closeField
-- part 1 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=18 top=52 right=317 bottom=461
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 2
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 2 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=123 top=29 right=49 bottom=461
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 6 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=475 top=29 right=49 bottom=499
-- title width / last selected line: 0
-- icon id / first selected line: 11045 / 11045
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Home
----- HyperTalk script -----
on mouseUp
go to last card
if bkgnd field 1 is empty then
if bkgnd field 2 is empty then
doMenu delete card
visual effect iris close
go Home
end if
else
visual effect iris close
go Home
end if
end mouseUp
-- part 10 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=393 top=322 right=337 bottom=461
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Date
-- part 11 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=472 top=55 right=78 bottom=503
-- title width / last selected line: 0
-- icon id / first selected line: 17481 / 17481
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Address
----- HyperTalk script -----
on mouseUp
go to last card
if bkgnd field 1 is empty then
if bkgnd field 2 is empty then
doMenu delete card
get the selection
visual effect zoom open
go to "Address"
if it is not empty then find it
end if
else
get the selection
visual effect zoom open
go to "Address"
if it is not empty then find it
end if
end mouseUp
-- part 12 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=469 top=82 right=108 bottom=503
-- title width / last selected line: 0
-- icon id / first selected line: 22855 / 22855
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Yearly
----- HyperTalk script -----
on mouseUp
go to last card
if bkgnd field 1 is empty then
if bkgnd field 2 is empty then
doMenu delete card
get the seconds
convert it to dateItems
put ((item 1 of it) - 1987) *2 into whichSix
if item 2 of it > 6 then add 1 to whichSix
visual effect zoom open
if whichSix < 1 then go card 1 of stack "DateBook"
else if whichSix > 5 then go card 5 of stack "DateBook"
else
go to card whichSix of stack "DateBook"
send "bracketWeek" && the seconds to this card
end if
end if
else
get the seconds
convert it to dateItems
put ((item 1 of it) - 1987) *2 into whichSix
if item 2 of it > 6 then add 1 to whichSix
visual effect zoom open
if whichSix < 1 then go card 1 of stack "DateBook"
else if whichSix > 5 then go card 5 of stack "DateBook"
else
go to card whichSix of stack "DateBook"
send "bracketWeek" && the seconds to this card
end if
end if
end mouseUp
-- part 13 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=473 top=114 right=138 bottom=503
-- title width / last selected line: 0
-- icon id / first selected line: 2478 / 2478
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Tell Me About...
----- HyperTalk script -----
on mouseUp
go to card "About LooseNotes"
end mouseUp
-- part 14 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=476 top=142 right=166 bottom=504
-- title width / last selected line: 0
-- icon id / first selected line: 23739 / 23739
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Add Card
----- HyperTalk script -----
on mouseUp
if the optionKey is down then
get bkgnd field "Number"
doMenu new card
put it + .01 into bkgnd field "Number"
else
if the optionKey is up then
go to last card
get bkgnd field "Number"
doMenu new card
put round (it) + 1 into bkgnd field "Number"
end if
end if
end mouseUp
-- part 15 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=475 top=168 right=193 bottom=505
-- title width / last selected line: 0
-- icon id / first selected line: 10412 / 10412
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Delete
----- HyperTalk script -----
on mouseUp
show bkgnd button "Keep Card"
show bkgnd button "Delete Card"
end mouseUp
-- part 21 (button)
-- low flags: 80
-- high flags: A003
-- rect: left=226 top=290 right=312 bottom=326
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Delete Card
----- HyperTalk script -----
on mouseUp
doMenu delete card
hide bkgnd button "Delete Card"
hide bkgnd button "Keep Card"
end mouseUp
-- part 22 (button)
-- low flags: 80
-- high flags: A003
-- rect: left=111 top=290 right=312 bottom=211
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Keep Card
----- HyperTalk script -----
on mouseUp
hide bkgnd button "Keep Card"
hide bkgnd button "Delete Card"
end mouseUp
-- part 23 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=47 top=318 right=333 bottom=112
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Number
-- part 24 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=473 top=196 right=222 bottom=507
-- title width / last selected line: 0
-- icon id / first selected line: 32670 / 32670
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Show All Cards
----- HyperTalk script -----
on mouseUp
show all cards
end mouseUp
-- part 25 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=474 top=224 right=252 bottom=504
-- title width / last selected line: 0
-- icon id / first selected line: 1009 / 1009
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Find
----- HyperTalk script -----
on mouseUp
doMenu "Find..."
end mouseUp
-- part 26 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=481 top=312 right=334 bottom=503
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: right dogear
----- HyperTalk script -----
on mouseUp
-- this script handles a diagonally divided button, intended to be
-- a right dogear
put (item 1 of the clickLoc) - (item 1 of the rect of the target) into x
put (item 4 of the rect of the target) - (item 2 of the clickLoc) into y
if (x < y) then -- click is in upper left
visual effect zoom open
play "click"
go to next card
else
visual effect wipe right
play "click"
go to prev card
end if
end mouseUp