FlowLayout Plugin for Xojo |
|
DesktopFlowLayout.ApplyLayout Method
Applies the layout

ApplyLayout()
Parameters
Remarks
Call this method from the constructor of the window that has the controls. The method can also be called at later stage if there is something that calls for such.
Notice in the example bellow how you add the controls to the layouts before calling the super class constructor, then you apply the flow layouts after calling the super class constructor.
Sub Constructor()
FlowLayout2.AddControl(lblCity)
FlowLayout2.AddControl(tbCity)
FlowLayout2.AddControl(lblState)
FlowLayout2.AddControl(tbState)
FlowLayout2.AddControl(lblZip)
FlowLayout2.AddControl(tbZip)
FlowLayout4.AddControl(btnNewPatient2)
FlowLayout4.AddControl(btnEditPatient2)
Super.Constructor
FlowLayout2.ApplyLayout()
FlowLayout4.ApplyLayout()
End Sub
Important notes:It is important to realise that the controls had to be added to the flow layouts in correct logical order.
A flow layout manages one horizontal row of controls where their width logically affect each other. If you have more than one row of controls than you use another flow layout to manage them.
See Also
DesktopFlowLayout Control