View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0026672 | Packages | LCL | public | 2014-09-03 14:10 | 2014-09-07 10:15 |
Reporter | sierdolg | Assigned To | Zeljan Rikalo | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Intel | OS | Linux | ||
Product Version | 1.2.4 | ||||
Target Version | 1.2.6 | Fixed in Version | 1.3 (SVN) | ||
Summary | 0026672: TPairSplitterSide does not publish Contraints property (in Linux, too) | ||||
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 | 1) Start a new application project. 2) Place a PairSplitter on its empy Form, set it to "Align:alClient". 3) Put one visual control (e.g. a Button) into each SplitterSide. 4) 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. | ||||
Tags | No tags attached. | ||||
Fixed in Revision | 46130 | ||||
LazTarget | - | ||||
Widgetset | GTK 2 | ||||
Attached Files |
|
|
Does Delphi publish Constraints property ? |
|
Sorry, I never had Delphi at all. But 1) Delphi has TSplitter, but not TPairSplitter (as documented on http://wiki.freepascal.org/Lazarus_Components ) 2) Windows version of Lazarus does publish this property since 2 years, and IMHO missing constraints in object inspector renders the whole IDE concept quite senseless at all ,-) (Why use a RAD IDE if you want to write everything in code anyway?) |
|
Delphi does not have a PairSplitter, but all other components have Constraints published |
|
> Windows version of Lazarus does publish this property since 2 years At least in trunk this is not true. Your fix suggests as much. The property simply isn't published at all. |
|
Then it will be published. |
|
Great. Thanks! |
|
Please test and close if ok. |
|
Updated target version. |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-09-03 14:10 | sierdolg | New Issue | |
2014-09-03 14:12 | Zeljan Rikalo | LazTarget | => - |
2014-09-03 14:12 | Zeljan Rikalo | Note Added: 0076864 | |
2014-09-03 14:12 | Zeljan Rikalo | Assigned To | => Zeljan Rikalo |
2014-09-03 14:12 | Zeljan Rikalo | Status | new => feedback |
2014-09-03 14:19 | sierdolg | Note Added: 0076865 | |
2014-09-03 14:19 | sierdolg | Status | feedback => assigned |
2014-09-03 14:21 | wp | Note Added: 0076866 | |
2014-09-03 14:22 | sierdolg | Note Edited: 0076865 | View Revisions |
2014-09-03 15:15 | Bart Broersma | Note Added: 0076869 | |
2014-09-03 16:09 | Zeljan Rikalo | Note Added: 0076875 | |
2014-09-03 16:40 | sierdolg | Note Added: 0076876 | |
2014-09-05 10:37 | Zeljan Rikalo | Fixed in Revision | => 46130 |
2014-09-05 10:37 | Zeljan Rikalo | Note Added: 0076902 | |
2014-09-05 10:37 | Zeljan Rikalo | Status | assigned => resolved |
2014-09-05 10:37 | Zeljan Rikalo | Resolution | open => fixed |
2014-09-07 10:15 | Zeljan Rikalo | Note Added: 0076947 | |
2014-09-07 10:15 | Zeljan Rikalo | Fixed in Version | => 1.3 (SVN) |
2014-09-07 10:15 | Zeljan Rikalo | Target Version | => 1.2.6 |