The main issue with DynImage is getting the images width and height
when it is done loading. Then the dynimage has to update itself and
invoke some kind of event saying its ready. So ideally, you don't
need to specify the w/h if you want to use the actual width/height.
Because in the Button widget, it has to be able to resize itself, but
it can't do so until it knows the image's width and height, unless you
specify it.
I beleive in IE if you say x = new Image(w||0,h||0), it will
initialize the w/h to 0 even after the load (if w or h is 0), so thats
one of the problems with the DynImage as it is now.
--
// Robert Rainwater
On 12/10/2000, 4:38:27 AM EST, Eytan wrote about "[Dynapi-Dev] Button/DynImage - I am
fixing this":
> I have looked at how the images work. I have made somthing similair but I
> find more simple. I created a TImage which in its constructor creates a
> "real" image (as in an IMG tag) then I can play with it using function I
> have created. Resizing would simply mean call ImgName.width and changing it.
> 8an
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/mailman/listinfo/dynapi-dev
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-dev