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 » Wed Apr 17, 2024 10:02 pm

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: 9670
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Importing Image as a control

Post by dunbarx » Wed Apr 17, 2024 10:38 pm

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: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Importing Image as a control

Post by Klaus » Thu Apr 18, 2024 11:35 am

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: 9670
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Importing Image as a control

Post by dunbarx » Thu Apr 18, 2024 1:47 pm

Klaus,

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

Craig

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Importing Image as a control

Post by Klaus » Thu Apr 18, 2024 2:55 pm

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 » Thu Apr 18, 2024 5:52 pm

Hello, thanks for the reply. The answers are clear. Sorry for my "cold start" in the forum.
Rinus

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Importing Image as a control

Post by Klaus » Thu Apr 18, 2024 6:09 pm

"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 » Thu Apr 18, 2024 6:15 pm

Yep, en ook een beetje Vlaams (and also a little bit Flamish).

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Importing Image as a control

Post by Klaus » Thu Apr 18, 2024 6:22 pm

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

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”