Hi Paul,
Thanks for Paris :-)
If you
show an image of another opened stack in your button (as icon), the
size
maybe bigger but results dropped and it's OK; in a field as
imagesource,
it's not dropped and 'invades' the field.
As far as I know, images used as icons in buttons or placed in fields
are never resized.
Fortunately :-)
As for me I would use something like:
on SetImageSource pImageName,pField,pChar,pHeight
create invisible image
set the botright of last image to -1,-1 -- off-screen
put image pImageName into last image
set the lockloc of last image to true
set the name of last image to pImageName & "Thumb"
set the height of last image to 14
set the width of last image to (the width of img "Ref" / the
height of img "Ref") * pHeight
set the imageSource of char pChar of fld pField to pImageName &
"Thumb"
end SetImageSource
And then I would use for instance: SetImageSource "Ref","Test",3,14
Where Ref is the name of an original image, Test the name of a
field, 3 the char number and 14 the height I want for the image in
the field.
Best Regards from Paris,
Eric Chatonet.
Le 2 déc. 05 à 15:46, Paul Claude a écrit :
Hi Paul,
Then if you want to show a big image AND have a mini thumbnail used
as an icon, there are 2 possibilities:
If images are static ones, prepare 2 images, a big one and a tiny
one :-)
If images can be imported by the user, you'll build their thumbnail
on-the-fly.
Le 2 déc. 05 à 13:00, Paul Claude a écrit :
No, the problem is this: I cannot change the original image, nor
copy it. I
only need to show an 'icon' of the image (as in a button).
Best Regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
So Smart Software
Thanks, Eric, but the problem is different: I would use the
imageSource
property to show images from other stacks on a list field in my
stack, but
avoiding to manipulate the images and to make unreadable my field.
If you
show an image of another opened stack in your button (as icon), the
size
maybe bigger but results dropped and it's OK; in a field as
imagesource,
it's not dropped and 'invades' the field.
Paris c'est merveilleuse (I'm born in Paris).
Bye
PaulClaude
----------------------------------------------------------------
So Smart Software
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
Free plugins and tutorials on my website
----------------------------------------------------------------
Web site http://www.sosmartsoftware.com/
Email [EMAIL PROTECTED]/
Phone 33 (0)1 43 31 77 62
Mobile 33 (0)6 20 74 50 86
----------------------------------------------------------------
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution