[Newbies]Imagesfiles in Squeak

David Shaffer cdshaffer at acm.org
Thu May 3 18:25:25 UTC 2007


Rob Van Pamel wrote:
>
> Hello
>
> If i want to use some images to embed them into my application.
>
> (Form fromFileNamed: 'test.jpg') asMorph openInWorld
>
> This works, but how can I specify that he searches in a subdirectory. 
> I don’t want to use an absolute path but a relative path.
>
> Thanx in advantage
>
> Rob Van Pamel
>
Rob,

Did you try:

(Form fromFileNamed: 'subdir/test.jpg') asMorph openInWorld

??? It works fine for me and the directory name is interpreted relative 
to the image directory.

David




More information about the Beginners mailing list