Importing Image as a control

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
boermanm
Posts: 3
Joined: Sat Mar 21, 2009 3:19 am

Importing Image as a control

Post 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?
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10502
Joined: Wed May 06, 2009 2:28 pm

Re: Importing Image as a control

Post 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
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Importing Image as a control

Post 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
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10502
Joined: Wed May 06, 2009 2:28 pm

Re: Importing Image as a control

Post by dunbarx »

Klaus,

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

Craig
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Importing Image as a control

Post by Klaus »

FANCY? :shock:
Good one! :D
boermanm
Posts: 3
Joined: Sat Mar 21, 2009 3:19 am

Re: Importing Image as a control

Post by boermanm »

Hello, thanks for the reply. The answers are clear. Sorry for my "cold start" in the forum.
Rinus
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Importing Image as a control

Post by Klaus »

"Rinus Boerman" sounds dutch to me, ben je Nederlands? :-)
boermanm
Posts: 3
Joined: Sat Mar 21, 2009 3:19 am

Re: Importing Image as a control

Post by boermanm »

Yep, en ook een beetje Vlaams (and also a little bit Flamish).
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Importing Image as a control

Post by Klaus »

boermanm wrote: Thu Apr 18, 2024 6:15 pmYep, en ook een beetje Vlaams (and also a little bit Flamish).
Dat is niet slecht, Meneer. :-D
Post Reply