On Fri, 23 Aug 2013 13:50:16 +0200 Jürgen Hestermann <[email protected]> wrote:
> Yet another TPairSplitter question: > > I can ensure that the ratio between upper and lower panel is a certain ratio > by adding an OnResize method like this: > > PairSplitter1.Position := Round(PairSplitter1.Height*SplitterRatio); > > with SplitterRatio beeing something between 0 and 1 (I used 0.5 to make both > (nearly) the same size). > > But if the user now changes the ratio manually I need to update SplitterRatio. > What event is driven when the splitter is moved manually so that I can > recalculate SplitterRatio? When the splitter is moved the size of the first side is changed. So, you could use Sides[0].OnResize. Mattias -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
