Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Mile High Table O'Products
3D Quad
Amara Flash Intro and Banner Builder
Find CD Drives letter quikly
StopWatch Timer
Starfield Behavior
PowerPoint / PPT Access
simODBCPro Xtra
PrimeBase Xtra
Wind-Xtra
 

 

 

Behavior Browse Folders Dialog Behavior

Added on 2/24/2003

 

Compatibilities:
behavior D6_5 D7 D8 D8_5 D9 PC US

Required Xtras:
HandyDialog Xtra

This item has not yet been rated

Author: Shockdev

Generic behavior to display Select Folder Dialog.

-- Browse Folders Dialog Behavior
-- HandyDialog Xtra 1.0 or later is required
-- by Meliora Software www.meliorasoft.com/xtras/
-- Compatibilities: Director 6 or higher Windows

property Title

on getPropertyDescriptionList
  set description = [:]
  addProp description, #Title, [#default:"", #format:#string, #comment:"Dialog Title:"]
  return description
end

on mouseDown
  browseDialog
end

on browseDialog

  set Ok = showBrowseDialog(Title)

  if getAt(Ok,1) = 0 then
    if count(Ok) = 3 then
      -- Some folder was selected
      put getAt(Ok,3)
    else
      --  Cancel button was clicked
      put "Cancel button was clicked"
    end if
  else
    -- Error occured
    alert("Error: " & getAt(Ok, 1) & " - base error code")
  end if
  
end

on getBehaviorDescription
  return "- -   Browse Folders Dialog Behavior   - -"
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail