> I have a Fl_Pack in a FL_Scroll to form an image browser. My > problem is when I resize it vertically the images get > stretched vertically. > > I tried overloading the image redraw() event to maintain the > aspect ratio but then they become cluttered and overlapping > in the pack. > > So, is there a way to 'refresh' the Fl_Pack so that it > recalculates where each member should go? I was considering > removing and re-adding the child elements again but that feels dirty. > > Or is there a more elegant approach to maintain the aspect ratio?
Is the Fl_Pack necessary? It is specifically intended to resize widgets to fit them together. If all you want to do is store statically sized objects into the scroll, would you not be better off making your own container? SELEX Sensors and Airborne Systems Limited Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

