Setting the default source path for image controls
Jim Ault
JimAultWins at yahoo.com
Sun Jan 14 20:15:09 EST 2007
On 1/14/07 12:45 PM, "Bob Earp" <rjearp at hotmail.com> wrote:
> I wish to set the default path for image controls, can this be done? If so
> what is the property for it? Failing that, anybody know if a referenced image
> (in an image control) can be relative rather than absolute?
you could try this solution
--make a new mainstack
--paste these two handlers in the stack script
--save to the desktop as "testImage.rev"
--close the stack, then
--create a folder on the desktop named "controlsFldr"
--put a graphic file "picture2.png" into that folder
--now open the stack and
--type "test" in the message box
-----> you should now see the image you want
add more graphics, mix, stir and salt to taste.
on openstack
put the filename of me into pathhFile
set the itemdel to "/"
put "controlsFldr/dummy.jpg" into item -1 of pathhFile
set the filename of the templateimage to pathhFile
end openstack
on test
put "picture2.png" into newFilename
create image
put the filename of the last image into holdName
replace "dummy.jpg" with newFilename in holdName
set the filename of the last image to holdName
end test
Jim Ault
Las Vegas
More information about the use-livecode
mailing list