Roger Blanchard
447 posts
Registered:
29 Jun 2018
19 Dec 2018
in reply to
Mike Fechner
Link to this post
I will log a bug...thanks.
As far as the workaround that would work for the Microsoft TableLayout Panel and I have working in a viewer. At design time the controls appear in the cell you dropped them in with the only change in code would be to set the Colspan and Rowspan.
For the UltraGridBagLayoutManager the next time you open the form the controls are all over the place. It just makes a mess at design time.
When using the UltraGridLayoutPanel an addl object is defined and created in InitializeComponent (for each control).
DEFINE VARIABLE gridBagConstraint1 AS Infragistics.Win.Layout.GridBagConstraint NO-UNDO.
gridBagConstraint1 = NEW Infragistics.Win.Layout.GridBagConstraint().
Then the properties of this new object are set and then associated with the control using the SetGridBagConstraint.
/* */
/* ultraTextEditor1 */
/* */
gridBagConstraint1:Fill = Infragistics.Win.Layout.FillType:Both.
gridBagConstraint1:OriginX = 0.
gridBagConstraint1:OriginY = 0.
THIS-OBJECT:ultraGridBagLayoutPanel1:SetGridBagConstraint(THIS-OBJECT:ultraTextEditor1, gridBagConstraint1).
THIS-OBJECT:ultraTextEditor1:Location = NEW System.Drawing.Point(126, 39).
THIS-OBJECT:ultraTextEditor1:Name = "ultraTextEditor1".
THIS-OBJECT:ultraGridBagLayoutPanel1:SetPreferredSize(THIS-OBJECT:ultraTextEditor1, NEW System.Drawing.Size(100, 21)).
THIS-OBJECT:ultraTextEditor1:Size = NEW System.Drawing.Size(100, 21).
THIS-OBJECT:ultraTextEditor1:TabIndex = 0.