StackPanel objects allow you to manage the layout of your page. The constructor argument is simply a vector of content elements. The default orientation is Vertical: set the Horizontal property to 1 to get a horizontal panel.
The following stack panels contain a Select, some text, and a Button.
Vertical Stack Panel
This is some text
Horizontal Stack Panel
The same controls, arranged horizontally.
This is some text
:ClassStackPanelSimple : MiPageSample
⍝ Control:: _DC.StackPanel
⍝ Description:: Vertical and Horizontal "stacking" of content.
∇ Compose;content;vsp;intro;hsp;uses:Access public
intro←'StackPanel objects allow you to manage the layout of your page. 'intro,←'The constructor argument is simply a vector of content elements. The default 'intro,←'orientation is Vertical: set the Horizontal property to 1 to get a horizontal panel.'Add_.pintroAdd_.p'The following stack panels contain a Select, some text, and a Button.'Add_.h3'Vertical Stack Panel'content←New_.Select('Bananas''Pears''Oranges')content,←New_.span'This is some text'content,←New_.Button'Useless button'vsp←'vsp'Add_.StackPanelcontentAdd_.h3'Horizontal Stack Panel'Add_.p'The same controls, arranged horizontally.'hsp←'hsp'Add_.StackPanelcontenthsp.Horizontal←1∇
:EndClass