Basic table field

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
Leff
Posts: 26
Joined: Sun Sep 21, 2014 12:44 pm

Basic table field

Post by Leff » Wed Nov 05, 2014 9:23 am

Hi.

How do I put/diplay/show a vector graphic image, made in a substack, in a basic table field? Is it possible or does it only support bitmap images? Is it also possible to only show the graphics in the tabel field and not anything else? If its possible I will also use the table field graphics as an overlay over another group of graphics.On top of that I would also like to have another overlay that can dissolve/fade graphics out of pre selected area...

Happy if you can help me :-)

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4174
Joined: Sun Jan 07, 2007 9:12 pm

Re: Basic table field

Post by bn » Wed Nov 05, 2014 12:55 pm

Hi Leff,
How do I put/diplay/show a vector graphic image, made in a substack, in a basic table field? Is it possible or does it only support bitmap images?
a field, and a basic table field is just a field, supports only bitmap images. Look at "imageSource" in the dictionary.
To display a vector graphic you could take a snapshot of the graphic and use this bitmap image as imageSource.
Is it also possible to only show the graphics in the tabel field and not anything else?
yes, you can show only bitmap images in a field. You would put characters into the field, one for each image you want to display and assign an imageSource to them.
If its possible I will also use the table field graphics as an overlay over another group of graphics
If you only want to use the field to display graphics maybe it is easier to group the graphics in a different group and overlay that group over the "other" group.
On top of that I would also like to have another overlay that can dissolve/fade graphics out of pre selected area...
I don't quite get what you are after, if you want to dissolve/fade a graphic you can do this by setting the blendLevel of the object itself. Or I misunderstood you.

It is probably easier to explain what you have in mind to give some context of what you want to achieve. Right now I have the impressionn that you don't need a table field since I don't see what you need a field for.

Kind regards

Bernd

Leff
Posts: 26
Joined: Sun Sep 21, 2014 12:44 pm

Re: Basic table field

Post by Leff » Thu Nov 06, 2014 10:35 am

Thank you for your reply :-)

I was just looking for an simple way to display vector objects predefined by a, let say, pull down menu. Now I know that vector graphics dont work with table field. Does it work with the data grid? It is for displaying guitar scales on the guitarneck :) Just trying several options.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Basic table field

Post by Simon » Thu Nov 06, 2014 9:36 pm

Hi Leff,
liveCode doesn't support vector images (yet).
I'd say forget trying to use a field or datagrid and just draw all the frets yourself. Heck you could import an image of the neck and put your dots(?) over it.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Leff
Posts: 26
Joined: Sun Sep 21, 2014 12:44 pm

Re: Basic table field

Post by Leff » Fri Nov 07, 2014 8:48 am

Hi Simon,

Made several test-apps with .png of the guitarneck and that is ok but I would also like to "render" it in realtime. I can also display/hide vector graphics in the main window, but was thinking about a database with all scales and stuff. Maybe less scripting and easy updating. Testing things when I have time free... :-) I just like the vector graphic because of the quallity. Also important with all the hi-res screens today.

Post Reply