Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Change ShapeType of a Shape cast member
Scroll Thumb
Animate Vector FillCycles
Bevel Button-Alphamania
Set DirectToStage Property of a Flash Member
Inverse cosine
Developing Projects Using Director and ASP
cXtraTransitions2
Download Net Thing
VCap
MediaMacros Xtras Mall
 

 

 

Behavior Generic behavior to change System Cursors

Added on 1/21/2002

 

Compatibilities:
behavior D6_5 D7 D8 D8_5 PC UK US

Required Xtras:
Desktop Xtra

This item has not yet been rated

Author: Shockdev

Allows to customize System Cursors

-- Generic behavior to change System Cursors
-- Desktop Xtra 1.0 or later required
-- Compatibilities: Director 6.x, 7.x, 8.x, Windows

property Cursors
property Appstarting, Arrow, Crosshair, Ibeam, No, Sizeall, Sizenesw
property Sizens, Sizenwse, Sizewe, Uparrow, Wait, Hand


on getPropertyDescriptionList
  set description = [:]
  set path = the moviePath
  addProp description, #Appstarting, [#default: path & "Appstarting.cur", #format:#string, #comment:"Standard arrow and small hourglass:"]
  addProp description, #Arrow, [#default: path & "Arrow.cur", #format:#string, #comment:"Standard arrow:"]
  addProp description, #Crosshair, [#default: path & "Crosshair.cur", #format:#string, #comment:"Crosshair:"]
  addProp description, #Ibeam, [#default: path & "Ibeam.cur", #format:#string, #comment:"I-beam:"]
  addProp description, #No, [#default: path & "No.cur", #format:#string, #comment:"Slashed circle:"]
  addProp description, #Sizeall, [#default: path & "Sizeall.cur", #format:#string, #comment:"Four-pointed arrow pointing north, south, east, and west:"]
  addProp description, #Sizenesw, [#default: path & "Sizenesw.cur", #format:#string, #comment:"Double-pointed arrow pointing northeast and southwest:"]
  addProp description, #Sizens, [#default: path & "Sizens.cur", #format:#string, #comment:"Double-pointed arrow pointing north and south:"]
  addProp description, #Sizenwse, [#default: path & "Sizenwse.cur", #format:#string, #comment:"Double-pointed arrow pointing northwest and southeast:"]
  addProp description, #Sizewe, [#default: path & "Sizewe.cur", #format:#string, #comment:"Double-pointed arrow pointing west and east:"]
  addProp description, #Uparrow, [#default: path & "Uparrow.cur", #format:#string, #comment:"Vertical arrow:"]
  addProp description, #Wait, [#default: path & "Wait.cur", #format:#string, #comment:"Hourglass:"]
  addProp description, #Hand, [#default: path & "Hand.cur", #format:#string, #comment:"Hand (for Windows2000 or later):"]
  return description
end

on getBehaviorDescription
  return "            " & ¬
  "- -    System Cursors Bahavior    - -" & RETURN & ¬
  "Changes all system cursors:"& RETURN & ¬
  "Appstarting, Arrow, Crosshair, Ibeam, No, Sizeall, Sizenesw, Sizens, Sizenwse, Sizewe, Uparrow, Wait, Hand."
end

on mouseDown
  -- List of all system desktop icons
  set Cursors = []
  add Cursors, "Appstarting"
  add Cursors, "Arrow"
  add Cursors, "Crosshair"
  add Cursors, "Ibeam"
  add Cursors, "No"
  add Cursors, "Sizeall"
  add Cursors, "Sizenesw"
  add Cursors, "Sizens"
  add Cursors, "Sizenwse"
  add Cursors, "Sizewe"
  add Cursors, "Uparrow"
  add Cursors, "Wait"
  add Cursors, "Hand"
  changeCursors
end

on changeCursors
  set cursor = ""
  repeat with i = 1 to count(Cursors)
    do "set cursor="&getAt(Cursors,i)
    set Ok = setSystemCursor (getAt(Cursors,i), cursor)
    if getAt(Ok,1) = 0 then
      -- Ok
    else
      -- Error
      alert("Error: " & getAt(Ok,1) & " - base error code")
    end if
  end repeat
end

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail