On Nov 15, 2007, at 12:18 PM, Richard Penman wrote:

>> if I understand correctly this prevents the image resizing by  
>> setting the resizable to another element.

Yes.

>> (Couldn't this also be achieved by setting the scroll resizable to  
>> null, as Paolo suggested?)

Possibly. I have not tested that.

> However I do want my images to resize with the scroll - I just want  
> their aspect ratios maintained.

FLTK does not resize images automatically, but you can adapt your code  
that scales and draws the images to keep aspect ratio for you. There  
is no function in Fl_Pack that manages aspect ratio, but it should be  
easy to implement overriding the Fl_Pack resize(x, y, w, h) function.

----
http://robowerk.com/


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to