Page 1 of 1

Importing Image as a control

Posted: Wed Apr 17, 2024 10:02 pm
by boermanm
I try to import a image on a card with extension “.livecode” under the File menu >Import as Control with Livecode 9.6.1 but the file once located is not highligted so it is not available for import. The same problem under the File menu Image File > New Referenced Control. How come?

Re: Importing Image as a control

Posted: Wed Apr 17, 2024 10:38 pm
by dunbarx
A liveCode file is not an image. No suprise that the OS does not include it in the available options. Not sure what the second example means.

An image has extensions such as ".jpg" or ".png".

I am no expert on this sort of thing, but maybe others will chime in...

Craig

Re: Importing Image as a control

Posted: Thu Apr 18, 2024 11:35 am
by Klaus
Hi boermanm,

welcome to the forum!

What Craig said. In the system dialog only images of type GIF, JPG or PNG will be selectable!
"*.livecode" is the suffix of your Livecode documents a.k.a. stacks.

Personal note:
A little "Hello" or something would not have hurt for the very first posting.

@Craig
Not sure what the second example means.
that does the same as "import as control" but will create an image object and set its FILENAME to the selected file (= referenced)


Best

Klaus

Re: Importing Image as a control

Posted: Thu Apr 18, 2024 1:47 pm
by dunbarx
Klaus,

Aha, thanks. I rarely use these fancy multi-media gadgets.

Craig

Re: Importing Image as a control

Posted: Thu Apr 18, 2024 2:55 pm
by Klaus
FANCY? :shock:
Good one! :D

Re: Importing Image as a control

Posted: Thu Apr 18, 2024 5:52 pm
by boermanm
Hello, thanks for the reply. The answers are clear. Sorry for my "cold start" in the forum.
Rinus

Re: Importing Image as a control

Posted: Thu Apr 18, 2024 6:09 pm
by Klaus
"Rinus Boerman" sounds dutch to me, ben je Nederlands? :-)

Re: Importing Image as a control

Posted: Thu Apr 18, 2024 6:15 pm
by boermanm
Yep, en ook een beetje Vlaams (and also a little bit Flamish).

Re: Importing Image as a control

Posted: Thu Apr 18, 2024 6:22 pm
by Klaus
boermanm wrote:
Thu Apr 18, 2024 6:15 pm
Yep, en ook een beetje Vlaams (and also a little bit Flamish).
Dat is niet slecht, Meneer. :-D