images in text fields - htmltext quirk?

James Hale james at thehales.id.au
Wed Nov 7 20:36:48 EST 2012


Thank you Klaus

> I have struck two problems.
>> 1: if the imageURL is of the form "http://.?" the image gets inserted.
>>  if the imageURL is of the form "file:/full_filepath" then nothing gets inserted.
> 
> the (very counterintuitiv) trick is to use BINFILE instead of FILE for local files in HTMLtext:
> "binfile:/full_filepath"
> 
> Been bitten by this lately, too.

ah ha!

> 
>> so the questions are a) can I have a local IRL as my image source? and b) what should the path be?
>> So far I have tried the full path from the boot disk down to a relative path from my livecode stack.
> 
> Full path and BINFILE will work!

cool
> 
>> 2: …..How do I allow for the size of the image?
> 
> Unfortunately the html SIZE tags (height/width) of images will be ignored by Livecode, so the image will always be displayed in its original size.
> You can however uncheck "fixed line height" to prevent more ugliness :-)

DOH!! I forgot to do this in my test stack. Of course I need to turn this off, else my different text sizes (as in the html) would be crap.

Thanks agin.


James

james at thehales.id.au

Tel: +61 3 9386 2516    
Fax: +61 3 9386 1387







More information about the use-livecode mailing list