Setting the default source path for image controls

David Bovill david at openpartnership.net
Sun Jan 14 16:32:25 EST 2007


You can"t set the default of an image control directly. Instead you would
script it - the technique i use is to add a handler like this:

setprop image_File shortFile
    put the default_Folder of me into rootFolder
    put rootFolder & shortFile into someFile
    set the fileName of me to someFile
end image_File

getprop default_Folder
  -- you can use a cProp here instead
  -- or code your defaut folder here
  put specialFolderPath("Desktop") & "/" into whatever
  return whatever
end default_Folder



More information about the use-livecode mailing list