home *** CD-ROM | disk | FTP | other *** search
/ Comic Book Maker: The Smurfs / COMIC.iso / mac / data_m / dialog / 00037_initSaveDialogBhvr.ls < prev    next >
Encoding:
Text File  |  1999-07-07  |  1.6 KB  |  44 lines

  1. property myParams, defaultBtn, pKeyApproveList, pNameMax
  2. global gDialogPresent, gObj3, gPlatForm
  3.  
  4. on beginSprite me
  5.   set adjustVLoc to the height of the member of sprite 10 + 5
  6.   set bugFix to the left of sprite 2
  7.   set myRect to the rect of sprite 2 + [0, 0, 0, adjustVLoc]
  8.   set the rect of sprite 2 to myRect
  9.   repeat with i in [1, 9, 23]
  10.     set the locV of sprite i to the locV of sprite i + adjustVLoc
  11.   end repeat
  12.   set offsetPoint to point(getAt(the rect of the stage, 1) + ((640 - the width of myRect) / 2), getAt(the rect of the stage, 2) + ((480 - the height of myRect) / 2))
  13.   checkBtnLocations(the bottom of myRect)
  14.   set bugFix to the rect of sprite 28
  15.   if not (the number of member the member of sprite 29) then
  16.     set alertIconHeight to 32
  17.   else
  18.     set alertIconHeight to the height of the member of sprite 29
  19.   end if
  20.   set dialogBottom to max(alertIconHeight + 15 + 60, the bottom of sprite 28 + 20 + 40)
  21.   set the locV of sprite 27 to dialogBottom - 40
  22.   set the locV of sprite 29 to dialogBottom - 40 - 20
  23.   checkBtnLocations(dialogBottom, [31, 33])
  24.   if not (the moreThanMax of sprite(12)) then
  25.     disable(sprite(14))
  26.     disable(sprite(16))
  27.     disable(sprite(17))
  28.   end if
  29.   updateIndicator(sprite(12), 1)
  30.   set theRect to myRect + rect(offsetPoint, offsetPoint)
  31.   set the rect of the activeWindow to theRect
  32.   set the modal of the activeWindow to 1
  33.   set the visible of the activeWindow to 1
  34. end
  35.  
  36. on enterFrame me
  37.   set the selStart to 0
  38.   set the selEnd to length(the text of member "fileName")
  39. end
  40.  
  41. on getPropertyDescriptionList
  42.   return [#myParams: [#comment: "Params:", #format: #integer, #default: VOID]]
  43. end
  44.