TPairSplitterSide does not publish Contraints property (in Linux, too)
Original Reporter info from Mantis: sierdolg
-
Reporter name:
Original Reporter info from Mantis: sierdolg
- Reporter name:
Description:
Setting constraints in code, e.g.
procedure TForm1.FormActivate(Sender: TObject);
begin
PairSplitterSide1.Constraints.MinWidth:=50;
PairSplitterSide2.Constraints.MinWidth:=50;
end;
works as expected, but constraints property does not appear in Object Inspector.
Steps to reproduce:
- Start a new application project.
- Place a PairSplitter on its empy Form, set it to "Align:alClient".
- Put one visual control (e.g. a Button) into each SplitterSide.
- Select any PairSplitterSideX in Object Inspector: there is no "Constraints" entry between "ChildSizing" and "Cursor".
Additional information:
This makes constraints unusable in a RAD tool's intended (visual) way.
However, they can be set in code as a workaround.
Easy Fix: Insert " property Constraints;" as line 63 into /usr/share/lazarus/1.2.4/lcl/pairsplitter.pas and recompile IDE.
See http://bugs.freepascal.org/view.php?id=25046 for the same on Windows! Hence, any other flavours of "pairsplitter.pas" (except Windows since Rev. 42854) are likely to contain the same problem.
Mantis conversion info:
- Mantis ID: 26672
- OS: Linux
- OS Build: 3.14-2-amd64
- Build: 45510
- Platform: Intel
- Version: 1.2.4
- Fixed in version: 1.3 (SVN)
- Fixed in revision: 46130 (#71702a85)
- Target version: 1.2.6