Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Check for Network Xtras
Remove border behavior
Universal serial port behavior
Export to Pocket PC Xtra
turn sprites on/off handlers
Select It
DirectTransition
Macromedia Director 7: Creating Powerful Multimedia
Show Me the Movie
Real Time Vector Editor
MediaMacros Xtras Mall
 

 

 

Behavior Generic behavior to set Wallpaper

Added on 1/19/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

Sets desktop wallpaper

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

property Wallpaper, PrevWallPaper

on getPropertyDescriptionList
  set description = [:]
  addProp description, #Wallpaper, [#default: the moviePath & "mywallpaper.bmp", #format:#string, #comment:"Wallpaper Path:" & RETURN & "(empty string to remove wallpaper)"]
  return description
end

on getBehaviorDescription
  return "            " & ¬
  "- -    Wallpaper Behavior    - -" & RETURN & ¬
  "Sets Wallpaper."
end

on mouseDown
  setWallpaper
end

on setWallpaper
  set Ok = SetDeskWallPaper (Wallpaper)
  if getAt(Ok, 1) = 0 then
    -- Ok
    set PrevWallPaper = getAt(Ok, 3) -- previous wallpaper
  else
    -- Error
    alert("Error: " & getAt(Ok, 1) & " - base error code")
  end if
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