I think you'd have to write custom code on the resize event to scale the dimensions. Keep in mind - do all the scaling from constants relating to a known size of the form that works - doing it on deltas/ last recorded size will cause an eventual creep north-west with rounding errors.
I don't believe there is an easy way to do it with anchors. HTH DSP ________________________________ From: ik [mailto:[email protected]] Sent: 23 February 2010 08:53 To: Lazarus mailing list Subject: [Lazarus] question in Button Alignment Hello, I wish to create a component that gives 10 buttons aligning 5 buttons on each side. The thing is, that I want to make both sides resize using anchors or something like that. The resizing should be both on width and height of the buttons but it can shrink up to a given size. The thing that I do not understand how to do, is to be able to grow/shrink both sides in width without covering each other. So how do I do it properly ? Thanks, Ido http://ik.homelinux.org/ -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
